Methods Summary |
---|
public java.io.InputStream | getBinaryStream()Retrieves this {@code Blob} object as a binary stream.
|
public byte[] | getBytes(long pos, int length)Gets a portion of the value of this {@code Blob} as an array of bytes.
|
public long | length()Gets the number of bytes in this {@code Blob} object.
|
public long | position(java.sql.Blob pattern, long start)Search for the position in this {@code Blob} at which a specified pattern
begins, starting at a specified position within the {@code Blob}.
|
public long | position(byte[] pattern, long start)Search for the position in this {@code Blob} at which the specified
pattern begins, starting at a specified position within the {@code Blob}.
|
public java.io.OutputStream | setBinaryStream(long pos)Gets a stream that can be used to write binary data to this {@code Blob}.
|
public int | setBytes(long pos, byte[] theBytes)Writes a specified array of bytes to this {@code Blob} object, starting
at a specified position. Returns the number of bytes written.
|
public int | setBytes(long pos, byte[] theBytes, int offset, int len)Writes a portion of a specified byte array to this {@code Blob}. Returns
the number of bytes written.
|
public void | truncate(long len)Truncate the value of this {@code Blob} object to a specified length in
bytes.
|