to.etc.domui.util
Class FileBlob

java.lang.Object
  extended by to.etc.domui.util.AbstractBlob
      extended by to.etc.domui.util.FileBlob
All Implemented Interfaces:
java.sql.Blob

public class FileBlob
extends AbstractBlob

A BLOB class which can be used to set the value of a BLOB property from a source file. BLOB thingies are unmutable once set.

Author:
Frits Jalvingh Created on Apr 9, 2008

Constructor Summary
FileBlob(java.io.File src)
           
 
Method Summary
 java.io.InputStream getBinaryStream()
           
 long length()
           
 
Methods inherited from class to.etc.domui.util.AbstractBlob
free, getBinaryStream, getBytes, position, position, setBinaryStream, setBytes, setBytes, truncate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileBlob

public FileBlob(java.io.File src)
Method Detail

getBinaryStream

public java.io.InputStream getBinaryStream()
                                    throws java.sql.SQLException
Specified by:
getBinaryStream in interface java.sql.Blob
Specified by:
getBinaryStream in class AbstractBlob
Throws:
java.sql.SQLException

length

public long length()
            throws java.sql.SQLException
Specified by:
length in interface java.sql.Blob
Overrides:
length in class AbstractBlob
Throws:
java.sql.SQLException