| Access | Constructor and Description |
|---|---|
| public | JdbcBlob(JdbcConnection
it belongs to conn, Value of value, JdbcLob.of the LOB state,of the trace object id)INTERNAL |
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | getBinaryStream()
Overrides org. Implements java. Retrieves the |
| public InputStream | Returns: the input stream to readwhere to start reading pos, long the number of bytes that will be read length)Implements java. Returns the input stream, starting from an offset. |
| public byte[] | Returns: the bytes, at most length bytesthe index, the first byte is at position 1 pos, int the number of bytes length)Implements java. Returns some bytes of the object. |
| public long | |
| public long | Returns: the position (first byte is at position 1), or -1 for not foundthe pattern to search pattern, long the index, the first byte is at position 1 start)Implements java. [Not supported] Searches a pattern and return the position. |
| public long | Returns: the position (first byte is at position 1), or -1 for not foundthe pattern to search blobPattern, long the index, the first byte is at position 1 start)Implements java. [Not supported] Searches a pattern and return the position. |
| public OutputStream | Returns: an output streamwhere to start writing (the first byte is at position 1) pos)Implements java. Get a writer to update the Blob. |
| public int | Returns: the length of the added datawhere to start writing (the first byte is at position 1) pos, byte[] the bytes to set bytes)Implements java. Fills the Blob. |
| public int | Returns: how many bytes have been writtenthe write position pos, byte[] the bytes to set bytes, int the bytes offset offset, int the number of bytes to write len)Implements java. Sets some bytes of the object. |
| public void | truncate(long
the new length len)Implements java. [Not supported] Truncates the object. |
| JdbcBlob | back to summary |
|---|---|
| public JdbcBlob(JdbcConnection conn, Value value, JdbcLob. INTERNAL
| |
| getBinaryStream | back to summary |
|---|---|
| public InputStream getBinaryStream() throws SQLException Overrides org. Implements java. Doc from java. Retrieves the
| |
| getBinaryStream | back to summary |
|---|---|
| public InputStream getBinaryStream(long pos, long length) throws SQLException Implements java. Returns the input stream, starting from an offset.
| |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes(long pos, int length) throws SQLException Implements java. Returns some bytes of the object.
| |
| length | back to summary |
|---|---|
| public long length() throws SQLException Implements java. Returns the length.
| |
| position | back to summary |
|---|---|
| public long position(byte[] pattern, long start) throws SQLException Implements java. [Not supported] Searches a pattern and return the position.
| |
| position | back to summary |
|---|---|
| public long position(Blob blobPattern, long start) throws SQLException Implements java. [Not supported] Searches a pattern and return the position.
| |
| setBinaryStream | back to summary |
|---|---|
| public OutputStream setBinaryStream(long pos) throws SQLException Implements java. Get a writer to update the Blob. This is only supported for new, empty Blob objects that were created with Connection.createBlob(). The Blob is created in a separate thread, and the object is only updated when OutputStream.close() is called. The position must be 1, meaning the whole Blob data is set.
| |
| setBytes | back to summary |
|---|---|
| public int setBytes(long pos, byte[] bytes) throws SQLException Implements java. Fills the Blob. This is only supported for new, empty Blob objects that were created with Connection.createBlob(). The position must be 1, meaning the whole Blob data is set.
| |
| setBytes | back to summary |
|---|---|
| public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException Implements java. Sets some bytes of the object.
| |
| truncate | back to summary |
|---|---|
| public void truncate(long len) throws SQLException Implements java. [Not supported] Truncates the object.
| |