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

long
position
(byte[] pattern, long start)
Retrieves the byte position at which the specified byte array pattern begins within the
BLOB value that this Blob object represents.
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.
Methods inherited from class com.hp.t4jdbc.
HPT4Lob
length, truncate
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.sql.Blob
length, truncate
Method Detail
getBinaryStream
public java.io.InputStream getBinaryStream()
throws java.sql.SQLException
Retrieves the BLOB value designated by this Blob instance as a stream.
Specified by:
getBinaryStream in interface java.sql.Blob
Returns:
a stream containing the BLOB data
Throws:
java.sql.SQLException - if there is an error accessing the BLOB value
See Also:
setBinaryStream(long)
getBytes
public byte[] getBytes(long pos,
int length)
throws java.sql.SQLException