|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.io.SimpleSerializer
public class SimpleSerializer
A Serializer implementation that uses the ExternalizableHelper implementation for serialization and deserialization of objects.
Constructor Summary | |
---|---|
SimpleSerializer()
Default constructor. |
|
SimpleSerializer(ClassLoader loader)
Construct a SimpleSerializer that will use the passed ClassLoader. |
Method Summary | |
---|---|
Object |
deserialize(ReadBuffer.BufferInput in)
Deserialize an object from a ReadBuffer by reading its state using the specified BufferInput object. |
ClassLoader |
getContextClassLoader()
Retrieve the context ClassLoader for this object. |
void |
serialize(WriteBuffer.BufferOutput out,
Object o)
Serialize an object to a WriteBuffer by writing its state using the specified BufferOutput object. |
void |
setContextClassLoader(ClassLoader loader)
Specify the context ClassLoader for this object. |
Constructor Detail |
---|
public SimpleSerializer()
public SimpleSerializer(ClassLoader loader)
loader
- the ClassLoader to use for deserializationMethod Detail |
---|
public void serialize(WriteBuffer.BufferOutput out, Object o) throws IOException
serialize
in interface Serializer
out
- the BufferOutput with which to write the object's stateo
- the object to serialize
IOException
- if an I/O error occurspublic Object deserialize(ReadBuffer.BufferInput in) throws IOException
deserialize
in interface Serializer
in
- the BufferInput with which to read the object's state
IOException
- if an I/O error occurspublic ClassLoader getContextClassLoader()
getContextClassLoader
in interface ClassLoaderAware
Thread.getContextClassLoader()
public void setContextClassLoader(ClassLoader loader)
setContextClassLoader
in interface ClassLoaderAware
loader
- the context ClassLoader for this object
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |