public final class ClientSideBlob extends ClientSideLob implements java.sql.Blob, OutputStreamWatcher
| Modifier and Type | Field and Description |
|---|---|
static int |
TEMPORARY_BLOB_SIZE |
| Constructor and Description |
|---|
ClientSideBlob() |
| Modifier and Type | Method and Description |
|---|---|
void |
finalizeStream(java.nio.ByteBuffer aBuffer,
int aLastPos) |
void |
free() |
java.io.InputStream |
getBinaryStream() |
java.io.InputStream |
getBinaryStream(long aPos,
long aLength) |
java.nio.ByteBuffer |
getBuffer() |
byte[] |
getBytes(long aPos,
int aLength) |
long |
length() |
long |
position(java.sql.Blob aPattern,
long aStartPos) |
long |
position(byte[] aPattern,
long aStartPos) |
java.io.OutputStream |
setBinaryStream(long aPos) |
int |
setBytes(long aPos,
byte[] aData) |
int |
setBytes(long aPos,
byte[] aData,
int aOffset,
int aLength) |
void |
truncate(long aLength) |
ensureIntRange, ensureOpen, setClosedpublic static final int TEMPORARY_BLOB_SIZE
public java.io.InputStream getBinaryStream()
throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionpublic byte[] getBytes(long aPos,
int aLength)
throws java.sql.SQLException
getBytes in interface java.sql.Blobjava.sql.SQLExceptionpublic long length()
throws java.sql.SQLException
length in interface java.sql.Blobjava.sql.SQLExceptionpublic long position(byte[] aPattern,
long aStartPos)
throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLExceptionpublic long position(java.sql.Blob aPattern,
long aStartPos)
throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLExceptionpublic java.io.OutputStream setBinaryStream(long aPos)
throws java.sql.SQLException
setBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionpublic int setBytes(long aPos,
byte[] aData)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLExceptionpublic int setBytes(long aPos,
byte[] aData,
int aOffset,
int aLength)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLExceptionpublic void truncate(long aLength)
throws java.sql.SQLException
truncate in interface java.sql.Blobjava.sql.SQLExceptionpublic void free()
throws java.sql.SQLException
free in interface java.sql.Blobjava.sql.SQLExceptionpublic java.io.InputStream getBinaryStream(long aPos,
long aLength)
throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionpublic java.nio.ByteBuffer getBuffer()
public void finalizeStream(java.nio.ByteBuffer aBuffer,
int aLastPos)
finalizeStream in interface OutputStreamWatcher