Serializable, Blobpublic final class SQLServerBlob extends Object implements Blob, Serializable
| Constructor | Description |
|---|---|
SQLServerBlob(SQLServerConnection connection,
byte[] data) |
Deprecated.
Use
SQLServerConnection.createBlob() instead. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
free() |
|
InputStream |
getBinaryStream() |
|
InputStream |
getBinaryStream(long pos,
long length) |
|
byte[] |
getBytes(long pos,
int length) |
|
long |
length() |
|
long |
position(byte[] bPattern,
long start) |
|
long |
position(Blob pattern,
long start) |
|
OutputStream |
setBinaryStream(long pos) |
|
int |
setBytes(long pos,
byte[] bytes) |
|
int |
setBytes(long pos,
byte[] bytes,
int offset,
int len) |
|
String |
toString() |
|
void |
truncate(long len) |
@Deprecated public SQLServerBlob(SQLServerConnection connection, byte[] data)
SQLServerConnection.createBlob() instead.connection - the database connection this blob is implemented ondata - the BLOB's datapublic void free()
throws SQLException
free in interface BlobSQLExceptionpublic InputStream getBinaryStream() throws SQLException
getBinaryStream in interface BlobSQLExceptionpublic InputStream getBinaryStream(long pos, long length) throws SQLException
getBinaryStream in interface BlobSQLExceptionpublic byte[] getBytes(long pos,
int length)
throws SQLException
getBytes in interface BlobSQLExceptionpublic long length()
throws SQLException
length in interface BlobSQLExceptionpublic long position(Blob pattern, long start) throws SQLException
position in interface BlobSQLExceptionpublic long position(byte[] bPattern,
long start)
throws SQLException
position in interface BlobSQLExceptionpublic void truncate(long len)
throws SQLException
truncate in interface BlobSQLExceptionpublic OutputStream setBinaryStream(long pos) throws SQLException
setBinaryStream in interface BlobSQLExceptionpublic int setBytes(long pos,
byte[] bytes)
throws SQLException
setBytes in interface BlobSQLExceptionpublic int setBytes(long pos,
byte[] bytes,
int offset,
int len)
throws SQLException
setBytes in interface BlobSQLExceptionCopyright © 2018 Microsoft Corporation. All rights reserved.