BlobRepresents a BLOB value.
void free()Release all resources of this object.InputStream getBinaryStream() throws SQLExceptionReturns 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 SQLExceptionReturns 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 SQLExceptionReturns 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
|