com.caucho.hessian.io
Class BasicSerializer

java.lang.Object
  extended by com.caucho.hessian.io.AbstractSerializer
      extended by com.caucho.hessian.io.BasicSerializer
All Implemented Interfaces:
ObjectSerializer, Serializer

public class BasicSerializer
extends AbstractSerializer
implements ObjectSerializer

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 BYTE_HANDLE
           
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 FLOAT_HANDLE
           
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 SHORT_HANDLE
           
static int STRING
           
static int STRING_ARRAY
           
 
Fields inherited from class com.caucho.hessian.io.AbstractSerializer
log
 
Constructor Summary
BasicSerializer(int code)
           
 
Method Summary
 Serializer getObjectSerializer()
           
 void writeObject(java.lang.Object obj, AbstractHessianOutput out)
           
 
Methods inherited from class com.caucho.hessian.io.AbstractSerializer
getClass, writeDefinition20, writeInstance, writeObject10, writeReplace
 
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

BYTE_HANDLE

public static final int BYTE_HANDLE
See Also:
Constant Field Values

SHORT_HANDLE

public static final int SHORT_HANDLE
See Also:
Constant Field Values

FLOAT_HANDLE

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

BasicSerializer

public BasicSerializer(int code)
Method Detail

getObjectSerializer

public Serializer getObjectSerializer()
Specified by:
getObjectSerializer in interface ObjectSerializer

writeObject

public void writeObject(java.lang.Object obj,
                        AbstractHessianOutput out)
                 throws java.io.IOException
Specified by:
writeObject in interface Serializer
Overrides:
writeObject in class AbstractSerializer
Throws:
java.io.IOException