Neoview JDBC Type 4 Driver API Reference (R2.2, R2.3, R2.4, R2.5)

Retrieves all or part of the
BLOB
value that this
Blob
object represents, as an array of bytes. This
byte
array
contains up to length consecutive bytes starting at position pos.
Specified by:
getBytes in interface java.sql.Blob
Parameters:
pos - the ordinal position of the first byte in the BLOB value to be extracted; the first byte is at position 1
length - the number of consecutive bytes to be copied
Returns:
a byte array containing up to length consecutive bytes from the BLOB value designated by this Blob
object, starting with the byte at position pos
Throws:
java.sql.SQLException - if there is an error accessing the BLOB value
Since:
1.2
See Also:
setBytes(long, byte[])
position
public long position(java.sql.Blob pattern,
long start)
throws java.sql.SQLException
Retrieves the byte position in the BLOB value designated by this Blob object at which pattern begins. The search
begins at position start.
Specified by:
position in interface java.sql.Blob
Parameters:
pattern - the Blob object designating the BLOB value for which to search
start - the position in the BLOB value at which to begin searching; the first position is 1
Returns:
the position at which the pattern begins, else -1
Throws:
java.sql.SQLException - if there is an error accessing the BLOB value
position
public long position(byte[] pattern,
long start)
throws java.sql.SQLException
Retrieves the byte position at which the specified byte array pattern begins within the BLOB value that this Blob
object represents. The search for pattern begins at position start.
Specified by:
position in interface java.sql.Blob
Parameters:
pattern - the byte array for which to search
start - the position at which to begin searching; the first position is 1