public class EventSerializer extends CustomSerializer<Event>
objectClass| Constructor and Description |
|---|
EventSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Event |
deserialize(java.io.InputStream in)
Deserializes an object from
InputStream. |
void |
serialize(java.io.OutputStream out,
Event event)
Serializes an object to
OutputStream. |
deserialize, getObjectClass, getSize, setObjectClasspublic void serialize(java.io.OutputStream out,
Event event)
throws ObjectNotSupportedException,
java.io.IOException
CustomSerializerOutputStream.serialize in class CustomSerializer<Event>out - output streamevent - object to be serializedObjectNotSupportedException - if this object cannot be serializedjava.io.IOException - if serializer experiences an input/output errorpublic Event deserialize(java.io.InputStream in) throws ObjectNotSupportedException, java.io.IOException, java.lang.ClassNotFoundException
CustomSerializerInputStream.deserialize in class CustomSerializer<Event>in - input streamObjectNotSupportedException - if this object cannot be deserializedjava.io.IOException - if the serializer experiences an input/output errorjava.lang.ClassNotFoundException - if the dependency is not loaded into the JVM