public class ShortSerializer extends Object implements Serializer<Short>
Short.| Constructor and Description |
|---|
ShortSerializer() |
| Modifier and Type | Method and Description |
|---|---|
SerializerFormatDefinition |
getFormatDefinition()
Get the definition that describes what this serializer can
read and write.
|
Short |
read(StreamingInput in)
Read an object from the specified stream.
|
void |
write(Short 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 Short read(StreamingInput in) throws IOException
Serializerread in interface Serializer<Short>IOExceptionpublic void write(Short object, String name, StreamingOutput stream) throws IOException
Serializerwrite in interface Serializer<Short>object - object to writename - the name it should have in the streamstream - the stream to useIOExceptionpublic SerializerFormatDefinition getFormatDefinition()
SerializergetFormatDefinition in interface Serializer<Short>Copyright © 2017. All rights reserved.