|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.connectivity.oda.impl.Blob
Default implementation of IBlob for use by ODA runtime drivers.
Blob
handles common types of raw data that represent
a BLOB value.
Constructor Summary | |
Blob(byte[] byteArray)
Create a new Blob from a byte array. |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Blob(byte[] byteArray)
byteArray
- byte array representing the blob.Method Detail |
public java.io.InputStream getBinaryStream() throws OdaException
IBlob
getBinaryStream
in interface IBlob
OdaException
- if data source error occurspublic byte[] getBytes(long position, int length) throws OdaException
IBlob
getBytes
in interface IBlob
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
length
consecutive bytes from the BLOB value,
starting with the byte at position
OdaException
- if data source error occurspublic long length() throws OdaException
IBlob
length
in interface IBlob
OdaException
- if data source error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |