Example usage for Java java.sql Blob fields, constructors, methods, implement or subclass
The text is from its open source code.
void | free() This method frees the Blob object and releases the resources that it holds. |
java.io.InputStream | getBinaryStream() Retrieves the BLOB value designated by this Blob instance as a stream. |
InputStream | getBinaryStream(long pos, long length) Returns an InputStream object that contains a partial Blob value, starting with the byte specified by pos, which is length bytes in length. |
byte[] | getBytes(long pos, int length) Retrieves all or part of the BLOB value that this Blob object represents, as an array of bytes. |
Class> | getClass() Returns the runtime class of this Object . |
long | length() Returns the number of bytes in the BLOB value designated by this Blob object. |
java.io.OutputStream | setBinaryStream(long pos) Retrieves a stream that can be used to write to the BLOB value that this Blob object represents. |
int | setBytes(long pos, byte[] bytes) Writes the given array of bytes to the BLOB value that this Blob object represents, starting at position pos , and returns the number of bytes written. |
int | setBytes(long pos, byte[] bytes, int offset, int len) Writes all or part of the given byte array to the BLOB value that this Blob object represents and returns the number of bytes written. |
String | toString() Returns a string representation of the object. |
void | truncate(long len) Truncates the BLOB value that this Blob object represents to be len bytes in length. |