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

Package class diagram package DatabaseStorageManager.InputStreamBlob
java.lang.Object
  extended by org.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
 void free()
           
 InputStream getBinaryStream()
           
 InputStream getBinaryStream(long pos, long length)
           
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

getBinaryStream

public InputStream getBinaryStream(long pos,
                                   long length)
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

free

public void free()
Specified by:
free in interface Blob


MMBase2 Core 2.0-SNAPSHOT - 2013-03-30T06:36