|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
By default, a Blob is a transaction duration reference to a binary large object. By default, a Blob is implemented using a LOCATOR(blob) internally.
Method Summary | |
InputStream | getBinaryStream()
Retrieve the entire BLOB as a stream. |
byte[] | getBytes(long pos,
int length)
Return a copy of the contents of the BLOB at the requested position. |
long | length()
The length of the Binary Large OBject in bytes. |
long | position(Blob pattern,
long start)
Determine the byte position at which the given pattern |
long | position(byte[] pattern,
long start)
Determine the byte position at which the given byte pattern |
Method Detail |
public long length() throws SQLException
public byte[] getBytes(long pos, int length) throws SQLException
pos
- is the first byte of the blob to be extracted.
length
- is the number of consecutive bytes to be copied.public InputStream getBinaryStream() throws SQLException
public long position(byte[] pattern, long start) throws SQLException
pattern
- is the pattern to search for.
start
- is the position at which to begin searching.public long position(Blob pattern, long start) throws SQLException
searchstr
- is the pattern to search for.
start
- is the position at which to begin searching.
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |