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

Returns:
the position at which the pattern appears; else -1
Throws:
java.sql.SQLException - if there is an error accessing the BLOB
setBinaryStream
public java.io.OutputStream setBinaryStream(long pos)
throws java.sql.SQLException
Retrieves a stream that can be used to write to the BLOB value that this Blob object represents. The stream begins
at position pos.
Specified by:
setBinaryStream in interface java.sql.Blob
Parameters:
pos - the position in the BLOB value at which to start writing
Returns:
a java.io.OutputStream object to which data can be written
Throws:
java.sql.SQLException - if there is an error accessing the BLOB value
See Also:
getBinaryStream()
setBytes
public int setBytes(long pos,
byte[] bytes)
throws java.sql.SQLException
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.
Specified by:
setBytes in interface java.sql.Blob
Parameters:
pos - the position in the BLOB object at which to start writing
bytes - the array of bytes to be written to the BLOB value that this Blob object represents
Returns:
the number of bytes written
Throws:
java.sql.SQLException - if there is an error accessing the BLOB value
See Also:
getBytes(long, int)
setBytes
public int setBytes(long pos,
byte[] bytes,
int offset,
int len)
throws java.sql.SQLException