TestTools.SimpleBlob

A simple Blob implementation.

Methods
void free()
Free the blob.
void free() throws SQLException
Free the blob.
InputStream getBinaryStream()
InputStream getBinaryStream() throws SQLException
InputStream getBinaryStream(long pos, long length)
Get the binary stream.
InputStream getBinaryStream(long pos, long length) throws SQLException
Get the binary stream.
Parameters:
pos - the position
length - the length
Returns:
the input stream
byte[] getBytes(long pos, int length)
byte[] getBytes(long pos, int length) throws SQLException
long length()
long length() throws SQLException
long position(byte[] pattern, long start)
long position(byte[] pattern, long start) throws SQLException
long position(Blob pattern, long start)
long position(Blob pattern, long start) throws SQLException
OutputStream setBinaryStream(long pos)
OutputStream setBinaryStream(long pos) throws SQLException
int setBytes(long pos, byte[] bytes)
int setBytes(long pos, byte[] bytes) throws SQLException
int setBytes(long pos, byte[] bytes, int offset, int len)
int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException
void truncate(long len)
void truncate(long len) throws SQLException