org.axiondb.types

Class ByteArrayBlob

public class ByteArrayBlob extends Object implements AxionBlob

A Blob based upon a simple byte array.

Version: $Revision: 1.3 $ $Date: 2007/11/13 19:04:02 $

Author: Rodney Waldhoff

Constructor Summary
ByteArrayBlob(byte[] value)
Method Summary
InputStreamgetBinaryStream()
byte[]getBytes()
byte[]getBytes(long pos, int length)
longlength()
longposition(Blob pattern, long start)
longposition(byte[] pattern, long start)
OutputStreamsetBinaryStream(long pos)
intsetBytes(long pos, byte[] bytes, int offset, int len)
intsetBytes(long pos, byte[] bytes)
voidtruncate(long len)

Constructor Detail

ByteArrayBlob

public ByteArrayBlob(byte[] value)

Method Detail

getBinaryStream

public InputStream getBinaryStream()

getBytes

public byte[] getBytes()

getBytes

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

length

public long length()

position

public long position(Blob pattern, long start)

position

public long position(byte[] pattern, long start)

setBinaryStream

public OutputStream setBinaryStream(long pos)

setBytes

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

setBytes

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

truncate

public void truncate(long len)