Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
Reality V15.0 ()
: Class RealSQLBlob (RealSQL-JDBC) (realsqlblob.html)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.northgateis.reality.realsql.RealSQLBlob
Implements the JDBC 2.0 Blob
interface.
Constructor Summary | |
RealSQLBlob(byte[] b)
Constructs a new RealSQLBlob from the specified byte array. |
|
RealSQLBlob(java.io.InputStream is)
Constructs a new RealSQLBlob from a binary stream. |
Method Summary | |
java.io.InputStream | getBinaryStream() |
byte[] | getBytes(long pos,
int len) Provides a byte array of data from this Blob starting at the specified start position within this Blob and having the specified length. |
long | length() |
long | position(java.sql.Blob pattern,
long start) Provides the position of the first occurrence of the specified pattern after the specified start position. |
long | position(byte[] pattern,
long start) Provides the position of the first occurrence of the specified pattern after the specified start position. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RealSQLBlob(byte[] b)
RealSQLBlob
from the specified byte array.b
- the array of bytes this Blob
representspublic RealSQLBlob(java.io.InputStream is) throws java.sql.SQLException
RealSQLBlob
from a binary stream.is
- the stream from which this Blob
will be
createdMethod Detail |
public java.io.InputStream getBinaryStream() throws java.sql.SQLException
Blob
as an InputStream
public byte[] getBytes(long pos, int len) throws java.sql.SQLException
Blob
starting at the specified start position within this Blob
and having the specified length. Note that the first argument is
a long
as required by the JDBC 2.0 specification.pos
- the start positionlen
- the length of the desired return arrayBlob
from the
specified start position up to the specified lengthBlob
.public long length() throws java.sql.SQLException
Blob
public long position(java.sql.Blob pattern, long start) throws java.sql.SQLException
pattern
- a Blob
representing the desired patternstart
- the index from which to start the search measured
from 1public long position(byte[] pattern, long start) throws java.sql.SQLException
pattern
- a byte array representing the desired patternstart
- the index from which to start the search measured
from 1PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |