org.hibernate.lob
Class BlobImpl
java.lang.Object
org.hibernate.lob.BlobImpl
- Blob
public class BlobImpl
extends java.lang.Object
implements Blob
A dummy implementation of java.sql.Blob that
may be used to insert new data into a BLOB.
BlobImpl
public BlobImpl(InputStream stream,
int length)
BlobImpl
public BlobImpl(byte[] bytes)
getBinaryStream
public InputStream getBinaryStream()
throws SQLException
java.sql.Blob.getBinaryStream()
getBytes
public byte[] getBytes(long pos,
int len)
throws SQLException
java.sql.Blob.getBytes(long, int)
length
public long length()
throws SQLException
position
public long position(Blob blob,
long pos)
throws SQLException
java.sql.Blob.position(Blob, long)
position
public long position(byte[] bytes,
long pos)
throws SQLException
java.sql.Blob.position(byte[], long)
setBinaryStream
public OutputStream setBinaryStream(long pos)
throws SQLException
java.sql.Blob.setBinaryStream(long)
setBytes
public int setBytes(long pos,
byte[] bytes)
throws SQLException
java.sql.Blob.setBytes(long, byte[])
setBytes
public int setBytes(long pos,
byte[] bytes,
int i,
int j)
throws SQLException
java.sql.Blob.setBytes(long, byte[], int, int)
truncate
public void truncate(long pos)
throws SQLException
java.sql.Blob.truncate(long)