|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.io.DefaultSerializer
public final class DefaultSerializer
A Serializer implementation that uses the ExternalizableHelper implementation for serialization and deserialization of objects.
Constructor Summary | |
---|---|
DefaultSerializer() Default constructor. |
|
DefaultSerializer(java.lang.ClassLoader loader) Construct a DefaultSerializer that will use the passed ClassLoader. |
Method Summary | |
---|---|
java.lang.Object |
deserialize(ReadBuffer.BufferInput in) Deserialize an object from a ReadBuffer by reading its state using the specified BufferInput object. |
java.lang.ClassLoader |
getContextClassLoader() Retrieve the context ClassLoader for this object. |
void |
serialize(WriteBuffer.BufferOutput out, java.lang.Object o) Serialize an object to a WriteBuffer by writing its state using the specified BufferOutput object. |
void |
setContextClassLoader(java.lang.ClassLoader loader) Specify the context ClassLoader for this object. |
java.lang.String |
toString() Return a description of this DefaultSerializer. |
Constructor Detail |
---|
public DefaultSerializer()
public DefaultSerializer(java.lang.ClassLoader loader)
loader
- the ClassLoader to use for deserializationMethod Detail |
---|
public void serialize(WriteBuffer.BufferOutput out, java.lang.Object o) throws java.io.IOException
serialize
in interface Serializer
out
- the BufferOutput with which to write the object's stateo
- the object to serializejava.io.IOException
- if an I/O error occurspublic java.lang.Object deserialize(ReadBuffer.BufferInput in) throws java.io.IOException
deserialize
in interface Serializer
in
- the BufferInput with which to read the object's statejava.io.IOException
- if an I/O error occurspublic java.lang.ClassLoader getContextClassLoader()
getContextClassLoader
in interface ClassLoaderAware
Thread.getContextClassLoader()
public void setContextClassLoader(java.lang.ClassLoader loader)
setContextClassLoader
in interface ClassLoaderAware
loader
- the context ClassLoader for this objectpublic java.lang.String toString()
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |