| java.lang.Object javax.sql.rowset.serial.SerialBlob
Method Summary | |
public InputStream | getBinaryStream() Returns an input stream of this SerialObject. | public byte[] | getBytes(long pos, int length) Returns a copied array of this SerialObject, starting at the
pos with the given length number. | public long | length() Gets the number of bytes in this SerialBlob object. | public long | position(Blob pattern, long start) Search for the position in this Blob at which a specified pattern begins,
starting at a specified position within the Blob.
Parameters: pattern - a Blob containing the pattern of data to search for in thisBlob Parameters: start - the position within this Blob to start the search, where thefirst position in the Blob is 1 a long value with the position at which the pattern begins. | public long | position(byte[] pattern, long start) Search for the position in this Blob at which the specified pattern
begins, starting at a specified position within the Blob.
Parameters: pattern - a byte array containing the pattern of data to search for inthis Blob Parameters: start - the position within this Blob to start the search, where thefirst position in the Blob is 1 a long value with the position at which the pattern begins. | public OutputStream | setBinaryStream(long pos) | public int | setBytes(long pos, byte[] theBytes) | public int | setBytes(long pos, byte[] theBytes, int offset, int length) | public void | truncate(long length) |
getBytes | public byte[] getBytes(long pos, int length) throws SerialException(Code) | | Returns a copied array of this SerialObject, starting at the
pos with the given length number. If
pos + length - 1 is larger than the length
of this SerialObject array, the length will be shortened
to the length of array - pos + 1.
Parameters: pos - the starting position of the array to be copied. Parameters: length - the total length of bytes to be copied throws: SerialException - if an error is encountered |
length | public long length() throws SerialException(Code) | | Gets the number of bytes in this SerialBlob object.
an long value with the length of the SerialBlob in bytes throws: SerialException - if an error is encoutnered |
position | public long position(Blob pattern, long start) throws SerialException, SQLException(Code) | | Search for the position in this Blob at which a specified pattern begins,
starting at a specified position within the Blob.
Parameters: pattern - a Blob containing the pattern of data to search for in thisBlob Parameters: start - the position within this Blob to start the search, where thefirst position in the Blob is 1 a long value with the position at which the pattern begins. -1 ifthe pattern is not found in this Blob. throws: SQLException - if an error occurs accessing the Blob throws: SerialException - if an error is encountered |
position | public long position(byte[] pattern, long start) throws SerialException, SQLException(Code) | | Search for the position in this Blob at which the specified pattern
begins, starting at a specified position within the Blob.
Parameters: pattern - a byte array containing the pattern of data to search for inthis Blob Parameters: start - the position within this Blob to start the search, where thefirst position in the Blob is 1 a long value with the position at which the pattern begins. -1 ifthe pattern is not found in this Blob. throws: SerialException - if an error is encountered throws: SQLException - if an error occurs accessing the Blob |
setBytes | public int setBytes(long pos, byte[] theBytes, int offset, int length) throws SQLException(Code) | | |
|
|