org.apache.cocoon.util
Class BlobHelper

java.lang.Object
  extended byorg.apache.cocoon.util.BlobHelper
All Implemented Interfaces:
Blob

public class BlobHelper
extends Object
implements Blob

A minimal implementation just enough to send a BLOB to a database. Advanced methods and all methods for modifying the BLOB are not implemented.

Version:
$Id: BlobHelper.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Constructor Summary
BlobHelper(InputStream is, long len)
           
 
Method Summary
 void free()
          Not implemented (Java6 extension).
 InputStream getBinaryStream()
           
 InputStream getBinaryStream(long pos, long length)
          Not implemented (Java6 extension).
 byte[] getBytes(long pos, int length)
          Not implemented.
 long length()
           
 long position(Blob pattern, long start)
          Not implemented.
 long position(byte[] pattern, long start)
          Not implemented.
 OutputStream setBinaryStream(long pos)
          Not implemented.
 int setBytes(long pos, byte[] bytes)
          Not implemented.
 int setBytes(long pos, byte[] bytes, int offset, int len)
          Not implemented.
 void truncate(long len)
          Not implemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobHelper

public BlobHelper(InputStream is,
                  long len)
Method Detail

getBinaryStream

public InputStream getBinaryStream()
Specified by:
getBinaryStream in interface Blob

length

public long length()
Specified by:
length in interface Blob

getBytes

public byte[] getBytes(long pos,
                       int length)
Not implemented.

Specified by:
getBytes in interface Blob

position

public long position(Blob pattern,
                     long start)
Not implemented.

Specified by:
position in interface Blob

position

public long position(byte[] pattern,
                     long start)
Not implemented.

Specified by:
position in interface Blob

setBinaryStream

public OutputStream setBinaryStream(long pos)
Not implemented.

Specified by:
setBinaryStream in interface Blob

setBytes

public int setBytes(long pos,
                    byte[] bytes)
Not implemented.

Specified by:
setBytes in interface Blob

setBytes

public int setBytes(long pos,
                    byte[] bytes,
                    int offset,
                    int len)
Not implemented.

Specified by:
setBytes in interface Blob

truncate

public void truncate(long len)
Not implemented.

Specified by:
truncate in interface Blob

free

public void free()
Not implemented (Java6 extension).


getBinaryStream

public InputStream getBinaryStream(long pos,
                                   long length)
Not implemented (Java6 extension).



Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.