Blob

Represents a BLOB value.

Methods
void free()
Release all resources of this object.
InputStream getBinaryStream()
Returns the input stream.
InputStream getBinaryStream(long pos, long length)
[Not supported] Returns the input stream, starting from an offset.
byte[] getBytes(long pos, int length)
Returns some bytes of the object.
long length()
Returns the length.
long position(byte[] pattern, long start)
[Not supported] Searches a pattern and return the position.
long position(Blob blobPattern, long start)
[Not supported] Searches a pattern and return the position.
OutputStream setBinaryStream(long pos)
[Not supported] Returns an output stream.
int setBytes(long pos, byte[] bytes)
[Not supported] Sets some bytes of the object.
int setBytes(long pos, byte[] bytes, int offset, int len)
[Not supported] Sets some bytes of the object.
void truncate(long len)
[Not supported] Truncates the object.

void free()

Release all resources of this object.

InputStream getBinaryStream() throws SQLException

Returns the input stream.

Returns:
the input stream
Throws:
SQLException

InputStream getBinaryStream(long pos, long length) throws SQLException

[Not supported] Returns the input stream, starting from an offset.

Parameters:
pos - where to start reading
length - the number of bytes that will be read
Returns:
the input stream to read
Throws:
SQLException

byte[] getBytes(long pos, int length) throws SQLException

Returns some bytes of the object.

Parameters:
pos - the index, the first byte is at position 1
length - the number of bytes
Returns:
the bytes, at most length bytes
Throws:
SQLException

long length() throws SQLException

Returns the length.

Returns:
the length
Throws:
SQLException

long position(byte[] pattern, long start) throws SQLException

[Not supported] Searches a pattern and return the position.

Parameters:
pattern - the pattern to search
start - the index, the first byte is at position 1
Returns:
the position (first byte is at position 1), or -1 for not found
Throws:
SQLException

long position(Blob blobPattern, long start) throws SQLException

[Not supported] Searches a pattern and return the position.

Parameters:
blobPattern - the pattern to search
start - the index, the first byte is at position 1
Returns:
the position (first byte is at position 1), or -1 for not found
Throws:
SQLException

OutputStream setBinaryStream(long pos) throws SQLException

[Not supported] Returns an output stream.

Parameters:
pos - where to start writing
Returns:
the output stream to write into
Throws:
SQLException

int setBytes(long pos, byte[] bytes) throws SQLException

[Not supported] Sets some bytes of the object.

Parameters:
pos - the write position
bytes - the bytes to set
Returns:
how many bytes have been written
Throws:
SQLException

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

[Not supported] Sets some bytes of the object.

Parameters:
pos - the write position
bytes - the bytes to set
offset - the bytes offset
len - the number of bytes to write
Returns:
how many bytes have been written
Throws:
SQLException

void truncate(long len) throws SQLException

[Not supported] Truncates the object.

Parameters:
len - the new length
Throws:
SQLException