net.sf.letsparty.driver.typehandlers
Class AsciiStreamHandler

java.lang.Object
  extended bynet.sf.letsparty.driver.typehandlers.AsciiStreamHandler
All Implemented Interfaces:
TypeHandler
Direct Known Subclasses:
BinaryStreamHandler

public class AsciiStreamHandler
extends java.lang.Object
implements TypeHandler


Field Summary
protected  int length
           
protected  java.io.InputStream value
           
 
Constructor Summary
AsciiStreamHandler(java.io.InputStream value, int length)
           
 
Method Summary
 java.lang.Object getValueAsObject()
           
 void setParameter(java.sql.PreparedStatement preparedStatement, int indexAt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected java.io.InputStream value

length

protected int length
Constructor Detail

AsciiStreamHandler

public AsciiStreamHandler(java.io.InputStream value,
                          int length)
Method Detail

setParameter

public void setParameter(java.sql.PreparedStatement preparedStatement,
                         int indexAt)
                  throws java.sql.SQLException
Specified by:
setParameter in interface TypeHandler
Throws:
java.sql.SQLException

getValueAsObject

public java.lang.Object getValueAsObject()
Specified by:
getValueAsObject in interface TypeHandler