de.ispsoft.jaxme.util
Class Lob

java.lang.Object
  extended byde.ispsoft.jaxme.util.Lob

public class Lob
extends java.lang.Object

Helper class for working with Lobs.

Author:
Jochen Wiedmann

Constructor Summary
Lob()
           
 
Method Summary
static byte[] getBinaryStream(java.io.InputStream pStream)
          Reads a BLOB and returns it as a byte array.
static java.lang.String getCharacterStream(java.io.Reader pReader)
          Reads a BLOB and returns it as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lob

public Lob()
Method Detail

getBinaryStream

public static byte[] getBinaryStream(java.io.InputStream pStream)
                              throws java.sql.SQLException

Reads a BLOB and returns it as a byte array.

Throws:
java.sql.SQLException

getCharacterStream

public static java.lang.String getCharacterStream(java.io.Reader pReader)
                                           throws java.sql.SQLException

Reads a BLOB and returns it as a String.

Throws:
java.sql.SQLException