java.lang.Object
com.aoapps.persistence.BufferedSerializer<E>
com.aoapps.persistence.ObjectSerializer<E>
- All Implemented Interfaces:
Serializer<E>
Serializes any
Serializable
objects.
This class is not thread safe.- Author:
- AO Industries, Inc.
-
Constructor Summary
ConstructorDescriptionObjectSerializer
(Class<E> type) Creates a newSerializable
object serializer. -
Method Summary
Modifier and TypeMethodDescriptionRestores an object from anInputStream
.protected void
serialize
(E value, ByteArrayOutputStream buffer) Methods inherited from class com.aoapps.persistence.BufferedSerializer
getSerializedSize, isFixedSerializedSize, serialize
-
Constructor Details
-
ObjectSerializer
Creates a newSerializable
object serializer.
-
-
Method Details
-
serialize
- Specified by:
serialize
in classBufferedSerializer<E>
- Throws:
IOException
-
deserialize
Description copied from interface:Serializer
Restores an object from anInputStream
.- Throws:
IOException
-