com.caucho.hessian.io
Class BasicDeserializer

java.lang.Object
  extended by com.caucho.hessian.io.AbstractDeserializer
      extended by com.caucho.hessian.io.BasicDeserializer
All Implemented Interfaces:
Deserializer

public class BasicDeserializer
extends AbstractDeserializer

Serializing an object for known object types.


Field Summary
static int BOOLEAN
           
static int BOOLEAN_ARRAY
           
static int BYTE
           
static int BYTE_ARRAY
           
static int CHARACTER
           
static int CHARACTER_ARRAY
           
static int CHARACTER_OBJECT
           
static int DATE
           
static int DOUBLE
           
static int DOUBLE_ARRAY
           
static int FLOAT
           
static int FLOAT_ARRAY
           
static int INTEGER
           
static int INTEGER_ARRAY
           
static int LONG
           
static int LONG_ARRAY
           
static int NULL
           
static int NUMBER
           
static int OBJECT
           
static int OBJECT_ARRAY
           
static int SHORT
           
static int SHORT_ARRAY
           
static int STRING
           
static int STRING_ARRAY
           
 
Constructor Summary
BasicDeserializer(int code)
           
 
Method Summary
 java.lang.Class getType()
           
 java.lang.Object readLengthList(AbstractHessianInput in, int length)
           
 java.lang.Object readList(AbstractHessianInput in, int length)
           
 java.lang.Object readObject(AbstractHessianInput in)
           
 
Methods inherited from class com.caucho.hessian.io.AbstractDeserializer
codeName, createField, createFields, error, isReadResolve, readMap, readObject, readObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final int NULL
See Also:
Constant Field Values

BOOLEAN

public static final int BOOLEAN
See Also:
Constant Field Values

BYTE

public static final int BYTE
See Also:
Constant Field Values

SHORT

public static final int SHORT
See Also:
Constant Field Values

INTEGER

public static final int INTEGER
See Also:
Constant Field Values

LONG

public static final int LONG
See Also:
Constant Field Values

FLOAT

public static final int FLOAT
See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
See Also:
Constant Field Values

CHARACTER

public static final int CHARACTER
See Also:
Constant Field Values

CHARACTER_OBJECT

public static final int CHARACTER_OBJECT
See Also:
Constant Field Values

STRING

public static final int STRING
See Also:
Constant Field Values

DATE

public static final int DATE
See Also:
Constant Field Values

NUMBER

public static final int NUMBER
See Also:
Constant Field Values

OBJECT

public static final int OBJECT
See Also:
Constant Field Values

BOOLEAN_ARRAY

public static final int BOOLEAN_ARRAY
See Also:
Constant Field Values

BYTE_ARRAY

public static final int BYTE_ARRAY
See Also:
Constant Field Values

SHORT_ARRAY

public static final int SHORT_ARRAY
See Also:
Constant Field Values

INTEGER_ARRAY

public static final int INTEGER_ARRAY
See Also:
Constant Field Values

LONG_ARRAY

public static final int LONG_ARRAY
See Also:
Constant Field Values

FLOAT_ARRAY

public static final int FLOAT_ARRAY
See Also:
Constant Field Values

DOUBLE_ARRAY

public static final int DOUBLE_ARRAY
See Also:
Constant Field Values

CHARACTER_ARRAY

public static final int CHARACTER_ARRAY
See Also:
Constant Field Values

STRING_ARRAY

public static final int STRING_ARRAY
See Also:
Constant Field Values

OBJECT_ARRAY

public static final int OBJECT_ARRAY
See Also:
Constant Field Values
Constructor Detail

BasicDeserializer

public BasicDeserializer(int code)
Method Detail

getType

public java.lang.Class getType()
Specified by:
getType in interface Deserializer
Overrides:
getType in class AbstractDeserializer

readObject

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

readList

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

readLengthList

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