net.sf.beanlib.utils
Class BlobUtils

java.lang.Object
  extended by net.sf.beanlib.utils.BlobUtils

public class BlobUtils
extends Object

Blob Utilities.

Author:
Joe D. Velopar

Field Summary
private  org.apache.log4j.Logger log
           
 
Constructor Summary
BlobUtils()
           
 
Method Summary
 byte[] toByteArray(Blob fromBlob)
           
 byte[] toByteArray(Blob fromBlob, int bufferSize)
           
private  byte[] toByteArrayImpl(Blob fromBlob, ByteArrayOutputStream baos, int bufferSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private org.apache.log4j.Logger log
Constructor Detail

BlobUtils

public BlobUtils()
Method Detail

toByteArray

public byte[] toByteArray(Blob fromBlob)

toByteArray

public byte[] toByteArray(Blob fromBlob,
                          int bufferSize)

toByteArrayImpl

private byte[] toByteArrayImpl(Blob fromBlob,
                               ByteArrayOutputStream baos,
                               int bufferSize)
                        throws SQLException,
                               IOException
Throws:
SQLException
IOException