|
1.50.39 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--interbase.interclient.Blob
Represents an SQL 3 Binary Large Object (BLOb). 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 pattern starts in the BLOB. |
long |
position(byte[] pattern,
long start)
Determine the byte position at which the given byte pattern
starts in the BLOB. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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
starts in the BLOB. Begin search at position
start.
Return -1 if the pattern does not appear in the BLOB.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
pattern
starts in the BLOB. Begin search at position start
.
Return -1 if the pattern does not appear in the BLOB.searchstr
- is the pattern to search for.start
- is the position at which to begin searching.
|
1.50.39 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |