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
static BlobUtils inst
           
private  Log log
           
 
Constructor Summary
private 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

inst

public static final BlobUtils inst

log

private Log log
Constructor Detail

BlobUtils

private 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