org.hibernate.lob

Class SerializableBlob

Implemented Interfaces:
Blob, Serializable

public class SerializableBlob
extends java.lang.Object
implements Serializable, Blob

Author:
Gavin King

Constructor Summary

SerializableBlob(Blob blob)

Method Summary

InputStream
getBinaryStream()
byte[]
getBytes(long pos, int length)
Blob
getWrappedBlob()
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
truncate(long len)

Constructor Details

SerializableBlob

public SerializableBlob(Blob blob)

Method Details

getBinaryStream

public InputStream getBinaryStream()
            throws SQLException

getBytes

public byte[] getBytes(long pos,
                       int length)
            throws SQLException

getWrappedBlob

public Blob getWrappedBlob()

length

public long length()
            throws SQLException

position

public long position(Blob pattern,
                     long start)
            throws SQLException

position

public long position(byte[] pattern,
                     long start)
            throws SQLException

setBinaryStream

public OutputStream setBinaryStream(long pos)
            throws SQLException

setBytes

public int setBytes(long pos,
                    byte[] bytes)
            throws SQLException

setBytes

public int setBytes(long pos,
                    byte[] bytes,
                    int offset,
                    int len)
            throws SQLException

truncate

public void truncate(long len)
            throws SQLException