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