|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-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(ClassLoader loader)Construct a DefaultSerializer 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. |
String |
toString()Return a description of this DefaultSerializer. |
| Constructor Detail |
|---|
public DefaultSerializer()
public DefaultSerializer(ClassLoader loader)
loader - the ClassLoader to use for deserialization| Method Detail |
|---|
public void serialize(WriteBuffer.BufferOutput out,
Object o)
throws IOException
serialize in interface Serializerout - the BufferOutput with which to write the object's stateo - the object to serializeIOException - if an I/O error occurs
public Object deserialize(ReadBuffer.BufferInput in)
throws IOException
deserialize in interface Serializerin - the BufferInput with which to read the object's stateIOException - if an I/O error occurspublic ClassLoader getContextClassLoader()
getContextClassLoader in interface ClassLoaderAwareThread.getContextClassLoader()public void setContextClassLoader(ClassLoader loader)
setContextClassLoader in interface ClassLoaderAwareloader - the context ClassLoader for this objectpublic String toString()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||