public class DynamicSerializer extends Object implements Serializer<Object>
| Constructor and Description |
|---|
DynamicSerializer(SerializerCollection collection) |
| Modifier and Type | Method and Description |
|---|---|
SerializerFormatDefinition |
getFormatDefinition()
Get the definition that describes what this serializer can
read and write.
|
Object |
read(StreamingInput in)
Read an object from the specified stream.
|
void |
write(Object object,
String name,
StreamingOutput stream)
Write and object to the specified stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromBytes, fromBytes, toBytes, toBytespublic DynamicSerializer(SerializerCollection collection)
public Object read(StreamingInput in) throws IOException
Serializerread in interface Serializer<Object>IOExceptionpublic void write(Object object, String name, StreamingOutput stream) throws IOException
Serializerwrite in interface Serializer<Object>object - object to writename - the name it should have in the streamstream - the stream to useIOExceptionpublic SerializerFormatDefinition getFormatDefinition()
SerializergetFormatDefinition in interface Serializer<Object>Copyright © 2016. All rights reserved.