public class JavaDefaultBinarySerializationHandler extends AbstractStreamSerializationHandler<java.io.Serializable>
Constructor and Description |
---|
JavaDefaultBinarySerializationHandler()
Creates a new
JavaDefaultBinarySerializationHandler . |
Modifier and Type | Method and Description |
---|---|
static JavaDefaultBinarySerializationHandler |
getInstance()
Gets a singleton instance of the class.
|
java.lang.Object |
readObject(java.io.InputStream stream)
Reads an object from the given stream.
|
void |
writeObject(java.io.OutputStream stream,
java.io.Serializable object)
Writes an object to a given output stream.
|
convertFromBytes, convertToBytes, readFromFile, writeToFile
readFromFile, writeToFile
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readFromFile, writeToFile
public JavaDefaultBinarySerializationHandler()
JavaDefaultBinarySerializationHandler
.public static JavaDefaultBinarySerializationHandler getInstance()
public void writeObject(java.io.OutputStream stream, java.io.Serializable object) throws java.io.IOException
StreamSerializationHandler
stream
- The stream to write the object to.object
- The object to write.java.io.IOException
- If there is an i/o error.public java.lang.Object readObject(java.io.InputStream stream) throws java.io.IOException, java.lang.ClassNotFoundException
StreamSerializationHandler
stream
- The stream to read an object from.java.io.IOException
- If there is an i/o error.java.lang.ClassNotFoundException
- If a class cannot be found.