Package com.caucho.hessian.io
Class JavaSerializer
- java.lang.Object
-
- com.caucho.hessian.io.AbstractSerializer
-
- com.caucho.hessian.io.JavaSerializer
-
- All Implemented Interfaces:
Serializer
- Direct Known Subclasses:
JavaUnsharedSerializer
public class JavaSerializer extends AbstractSerializer
Serializing an object for known object types.
-
-
Field Summary
-
Fields inherited from class com.caucho.hessian.io.AbstractSerializer
NULL
-
-
Constructor Summary
Constructors Constructor Description JavaSerializer(Class<?> cl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Serializercreate(Class<?> cl)protected static MethodgetWriteReplace(Class<?> cl)Returns the writeReplace methodprotected MethodgetWriteReplace(Class<?> cl, Class<?> param)Returns the writeReplace methodprotected voidintrospect(Class<?> cl)voidwriteInstance(Object obj, AbstractHessianOutput out)voidwriteObject(Object obj, AbstractHessianOutput out)protected voidwriteObject10(Object obj, AbstractHessianOutput out)-
Methods inherited from class com.caucho.hessian.io.AbstractSerializer
getClass, writeDefinition20, writeReplace
-
-
-
-
Constructor Detail
-
JavaSerializer
public JavaSerializer(Class<?> cl)
-
-
Method Detail
-
create
public static Serializer create(Class<?> cl)
-
introspect
protected void introspect(Class<?> cl)
-
getWriteReplace
protected static Method getWriteReplace(Class<?> cl)
Returns the writeReplace method
-
getWriteReplace
protected Method getWriteReplace(Class<?> cl, Class<?> param)
Returns the writeReplace method
-
writeObject
public void writeObject(Object obj, AbstractHessianOutput out) throws IOException
- Specified by:
writeObjectin interfaceSerializer- Overrides:
writeObjectin classAbstractSerializer- Throws:
IOException
-
writeObject10
protected void writeObject10(Object obj, AbstractHessianOutput out) throws IOException
- Overrides:
writeObject10in classAbstractSerializer- Throws:
IOException
-
writeInstance
public void writeInstance(Object obj, AbstractHessianOutput out) throws IOException
- Overrides:
writeInstancein classAbstractSerializer- Throws:
IOException
-
-