|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.jtds.jdbc.BlobImpl
An in-memory or disk based representation of binary data.
| Field Summary | |
private BlobBuffer |
blobBuffer
The underlying BlobBuffer. |
private static byte[] |
EMPTY_BLOB
0 length byte[] as initial value for empty
Blobs. |
| Constructor Summary | |
(package private) |
BlobImpl(ConnectionJDBC2 connection)
Constructs a new empty Blob instance. |
(package private) |
BlobImpl(ConnectionJDBC2 connection,
byte[] bytes)
Constructs a new Blob instance initialized with data. |
| Method Summary | |
java.io.InputStream |
getBinaryStream()
|
byte[] |
getBytes(long pos,
int length)
|
long |
length()
|
long |
position(java.sql.Blob pattern,
long start)
|
long |
position(byte[] pattern,
long start)
|
java.io.OutputStream |
setBinaryStream(long pos)
|
int |
setBytes(long pos,
byte[] bytes)
|
int |
setBytes(long pos,
byte[] bytes,
int offset,
int len)
|
void |
truncate(long len)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final byte[] EMPTY_BLOB
byte[] as initial value for empty
Blobs.
private final BlobBuffer blobBuffer
BlobBuffer.
| Constructor Detail |
BlobImpl(ConnectionJDBC2 connection)
Blob instance.
connection - a reference to the parent connection object
BlobImpl(ConnectionJDBC2 connection,
byte[] bytes)
Blob instance initialized with data.
connection - a reference to the parent connection objectbytes - the blob object to encapsulate| Method Detail |
public java.io.InputStream getBinaryStream()
throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLException
public byte[] getBytes(long pos,
int length)
throws java.sql.SQLException
getBytes in interface java.sql.Blobjava.sql.SQLException
public long length()
throws java.sql.SQLException
length in interface java.sql.Blobjava.sql.SQLException
public long position(byte[] pattern,
long start)
throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLException
public long position(java.sql.Blob pattern,
long start)
throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLException
public java.io.OutputStream setBinaryStream(long pos)
throws java.sql.SQLException
setBinaryStream in interface java.sql.Blobjava.sql.SQLException
public int setBytes(long pos,
byte[] bytes)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLException
public int setBytes(long pos,
byte[] bytes,
int offset,
int len)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLException
public void truncate(long len)
throws java.sql.SQLException
truncate in interface java.sql.Blobjava.sql.SQLException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||