FileDocCategorySizeDatePackage
SerializableBlob.javaAPI DocHibernate 3.2.51662Wed Mar 02 04:43:36 GMT 2005org.hibernate.lob

SerializableBlob

public class SerializableBlob extends Object implements Serializable, Blob
author
Gavin King

Fields Summary
private final transient Blob
blob
Constructors Summary
public SerializableBlob(Blob blob)

		this.blob = blob;
	
Methods Summary
public java.io.InputStreamgetBinaryStream()

		return getWrappedBlob().getBinaryStream();
	
public byte[]getBytes(long pos, int length)

		return getWrappedBlob().getBytes(pos, length);
	
public java.sql.BlobgetWrappedBlob()

		if ( blob==null ) {
			throw new IllegalStateException("Blobs may not be accessed after serialization");
		}
		else {
			return blob;
		}
	
public longlength()

		return getWrappedBlob().length();
	
public longposition(byte[] pattern, long start)

		return getWrappedBlob().position(pattern, start);
	
public longposition(java.sql.Blob pattern, long start)

		return getWrappedBlob().position(pattern, start);
	
public java.io.OutputStreamsetBinaryStream(long pos)

		return getWrappedBlob().setBinaryStream(pos);
	
public intsetBytes(long pos, byte[] bytes)

		return getWrappedBlob().setBytes(pos, bytes);
	
public intsetBytes(long pos, byte[] bytes, int offset, int len)

		return getWrappedBlob().setBytes(pos, bytes, offset, len);
	
public voidtruncate(long len)

		getWrappedBlob().truncate(len);