com.caucho.hessian.io
Class AbstractStringValueDeserializer

java.lang.Object
  extended by com.caucho.hessian.io.AbstractDeserializer
      extended by com.caucho.hessian.io.AbstractStringValueDeserializer
All Implemented Interfaces:
Deserializer
Direct Known Subclasses:
BigDecimalDeserializer, FileDeserializer, ObjectNameDeserializer, StringValueDeserializer

public abstract class AbstractStringValueDeserializer
extends AbstractDeserializer

Deserializes a string-valued object like BigDecimal.


Field Summary
 
Fields inherited from class com.caucho.hessian.io.AbstractDeserializer
NULL
 
Constructor Summary
AbstractStringValueDeserializer()
           
 
Method Summary
protected abstract  java.lang.Object create(java.lang.String value)
           
 java.lang.Object readMap(AbstractHessianInput in)
           
 java.lang.Object readObject(AbstractHessianInput in, java.lang.Object[] fields)
          Reads an object instance from the input stream
 
Methods inherited from class com.caucho.hessian.io.AbstractDeserializer
codeName, createField, createFields, error, getType, isReadResolve, readLengthList, readList, readObject, readObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractStringValueDeserializer

public AbstractStringValueDeserializer()
Method Detail

create

protected abstract java.lang.Object create(java.lang.String value)
                                    throws java.io.IOException
Throws:
java.io.IOException

readMap

public java.lang.Object readMap(AbstractHessianInput in)
                         throws java.io.IOException
Specified by:
readMap in interface Deserializer
Overrides:
readMap in class AbstractDeserializer
Throws:
java.io.IOException

readObject

public java.lang.Object readObject(AbstractHessianInput in,
                                   java.lang.Object[] fields)
                            throws java.io.IOException
Description copied from class: AbstractDeserializer
Reads an object instance from the input stream

Specified by:
readObject in interface Deserializer
Overrides:
readObject in class AbstractDeserializer
Parameters:
in - the input stream
fields - the deserializer's own field marshal
Returns:
the new object
Throws:
java.io.IOException