|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IBlob
An optional interface that represents a Binary Large Object (BLOB) value.
The interface must be implemented only if the ODA driver
supports the BLOB data type.
The IBlob interface provides methods for retrieving a BLOB value
as a Java input stream that can be read in smaller chunks, and
for optionally getting the length of a BLOB value.
The interface method IResultSet.getBlob returns
an IBlob instance.
| Method Summary | |
|---|---|
java.io.InputStream |
getBinaryStream()
Retrieves the BLOB value designated by this IBlob instance as a binary stream of uninterpreted bytes. |
byte[] |
getBytes(long position,
int length)
Retrieves all or part of the BLOB value designated by this IBlob instance as an array of bytes. |
long |
length()
Returns the number of bytes in the BLOB value designated by this IBlob object. |
| Method Detail |
|---|
java.io.InputStream getBinaryStream()
throws OdaException
OdaException - if data source error occurs
byte[] getBytes(long position,
int length)
throws OdaException
position - the 1-based ordinal position of the first byte
in the BLOB value to be extractedlength - the number of consecutive bytes to be copied;
a negative value means to copy all remaining bytes
available in the binary stream
length
consecutive bytes from the BLOB value,
starting with the byte at position
OdaException - if data source error occurs
long length()
throws OdaException
OdaException - if data source error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||