public class SimpleBlob
extends java.lang.Object
implements java.sql.Blob, java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
protected java.io.File |
file |
构造器和说明 |
---|
SimpleBlob() |
SimpleBlob(java.io.File f)
如果数据已经是byte[],请使用javax.sql.rowset.serial.SerialBlob
|
限定符和类型 | 方法和说明 |
---|---|
void |
free() |
java.io.InputStream |
getBinaryStream() |
java.io.InputStream |
getBinaryStream(long pos,
long length) |
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 |
setFile(java.io.File file) |
void |
truncate(long len) |
public SimpleBlob()
public SimpleBlob(java.io.File f)
public long length() throws java.sql.SQLException
length
在接口中 java.sql.Blob
java.sql.SQLException
public byte[] getBytes(long pos, int length) throws java.sql.SQLException
getBytes
在接口中 java.sql.Blob
java.sql.SQLException
public java.io.InputStream getBinaryStream() throws java.sql.SQLException
getBinaryStream
在接口中 java.sql.Blob
java.sql.SQLException
public long position(byte[] pattern, long start) throws java.sql.SQLException
position
在接口中 java.sql.Blob
java.sql.SQLException
public long position(java.sql.Blob pattern, long start) throws java.sql.SQLException
position
在接口中 java.sql.Blob
java.sql.SQLException
public int setBytes(long pos, byte[] bytes) throws java.sql.SQLException
setBytes
在接口中 java.sql.Blob
java.sql.SQLException
public int setBytes(long pos, byte[] bytes, int offset, int len) throws java.sql.SQLException
setBytes
在接口中 java.sql.Blob
java.sql.SQLException
public java.io.OutputStream setBinaryStream(long pos) throws java.sql.SQLException
setBinaryStream
在接口中 java.sql.Blob
java.sql.SQLException
public void truncate(long len) throws java.sql.SQLException
truncate
在接口中 java.sql.Blob
java.sql.SQLException
public void free() throws java.sql.SQLException
free
在接口中 java.sql.Blob
java.sql.SQLException
public java.io.InputStream getBinaryStream(long pos, long length) throws java.sql.SQLException
getBinaryStream
在接口中 java.sql.Blob
java.sql.SQLException
public void setFile(java.io.File file)