java.io.Serializable
, java.sql.Blob
public final class SQLServerBlob
extends java.lang.Object
implements java.sql.Blob, java.io.Serializable
Constructor | Description |
---|---|
SQLServerBlob(SQLServerConnection connection,
byte[] data) |
Deprecated.
Use
SQLServerConnection.createBlob() instead. |
Modifier and Type | Method | Description |
---|---|---|
void |
free() |
|
java.io.InputStream |
getBinaryStream() |
|
java.io.InputStream |
getBinaryStream(long pos,
long length) |
|
byte[] |
getBytes(long pos,
int length) |
|
long |
length() |
|
long |
position(byte[] bPattern,
long start) |
|
long |
position(java.sql.Blob 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) |
|
java.lang.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 final java.lang.String toString()
toString
in class java.lang.Object
public void free() throws java.sql.SQLException
free
in interface java.sql.Blob
java.sql.SQLException
public java.io.InputStream getBinaryStream() throws java.sql.SQLException
getBinaryStream
in interface java.sql.Blob
java.sql.SQLException
public java.io.InputStream getBinaryStream(long pos, long length) throws java.sql.SQLException
getBinaryStream
in interface java.sql.Blob
java.sql.SQLException
public byte[] getBytes(long pos, int length) throws java.sql.SQLException
getBytes
in interface java.sql.Blob
java.sql.SQLException
public long length() throws java.sql.SQLException
length
in interface java.sql.Blob
java.sql.SQLException
public long position(java.sql.Blob pattern, long start) throws java.sql.SQLException
position
in interface java.sql.Blob
java.sql.SQLException
public long position(byte[] bPattern, long start) throws java.sql.SQLException
position
in interface java.sql.Blob
java.sql.SQLException
public void truncate(long len) throws java.sql.SQLException
truncate
in interface java.sql.Blob
java.sql.SQLException
public java.io.OutputStream setBinaryStream(long pos) throws java.sql.SQLException
setBinaryStream
in interface java.sql.Blob
java.sql.SQLException
public int setBytes(long pos, byte[] bytes) throws java.sql.SQLException
setBytes
in interface java.sql.Blob
java.sql.SQLException
public int setBytes(long pos, byte[] bytes, int offset, int len) throws java.sql.SQLException
setBytes
in interface java.sql.Blob
java.sql.SQLException
Copyright © 2018 Microsoft Corporation. All rights reserved.