org.mmbase.storage.implementation.database
Class DatabaseStorageManager.InputStreamBlob

java.lang.Object
  extended byorg.mmbase.storage.implementation.database.DatabaseStorageManager.InputStreamBlob
All Implemented Interfaces:
Blob
Enclosing class:
DatabaseStorageManager

protected static class DatabaseStorageManager.InputStreamBlob
extends Object
implements Blob


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

Constructor Detail

DatabaseStorageManager.InputStreamBlob

public DatabaseStorageManager.InputStreamBlob(InputStream is,
                                              long s)

DatabaseStorageManager.InputStreamBlob

public DatabaseStorageManager.InputStreamBlob(InputStream is)
Method Detail

getBinaryStream

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

getBytes

public byte[] getBytes(long pos,
                       int length)
Specified by:
getBytes in interface Blob

getBytes

protected void getBytes()

length

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

position

public long position(Blob pattern,
                     long start)
Specified by:
position in interface Blob

position

public long position(byte[] pattern,
                     long start)
Specified by:
position in interface Blob

setBinaryStream

public OutputStream setBinaryStream(long pos)
Specified by:
setBinaryStream in interface Blob

setBytes

public int setBytes(long pos,
                    byte[] bytes)
Specified by:
setBytes in interface Blob

setBytes

public int setBytes(long pos,
                    byte[] bytes,
                    int offset,
                    int len)
Specified by:
setBytes in interface Blob

truncate

public void truncate(long len)
Specified by:
truncate in interface Blob


MMBase build 1.8.1.20060716