Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Interface java.sql.BlobLocator


public interface BlobLocator
JDBC 2.0

A BlobLocator is a transaction duration reference to a binary large object in the DBMS server.


Method Summary
InputStream  getBinaryStream()
Retrieve the entire BLOB as a stream.
byte[]  getBytes(int pos, int length)
Return copy of the substring of the BLOB at the requested   * position.
long  length()
The length of the Binary Large Object in bytes.
 

Method Detail

length

public long length()
The length of the Binary Large Object in bytes.
Returns:
length of the BLOB in bytes

getBytes

public byte[] getBytes(int pos,
                       int length)
Return copy of the substring of the BLOB at the requested   * position.
Parameters:
pos - is the first byte of the substring to be extracted.
length - is the number of consecutive bytes to be copied.
Returns:
a byte array containing a substring of the BLOB

getBinaryStream

public InputStream getBinaryStream()
Retrieve the entire BLOB as a stream.
Returns:
a stream containing the BLOB data

Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.