patterntesting.runtime.io
Class BinarySerializer

Package class diagram package BinarySerializer
java.lang.Object
  extended by patterntesting.runtime.io.AbstractSerializer
      extended by patterntesting.runtime.io.BinarySerializer

public final class BinarySerializer
extends AbstractSerializer

This is the default serializer which uses the default mechanism proved by the JDK. For this reason the serialized object must be Serializable.

Since:
1.4 (30.11.2013)
Author:
oliver

Constructor Summary
BinarySerializer()
           
 
Method Summary
 ObjectInputStream createObjectInputStream(InputStream in)
          Creates the ObjectInputStream that deserializes a stream of objects from an InputStream using the default mechnism of Java.
 ObjectOutputStream createObjectOutputStream(OutputStream out)
          Creates the ObjectOutputStream that serializees a stream of objects to the OutputStream using the default mechnism of Java.
 
Methods inherited from class patterntesting.runtime.io.AbstractSerializer
getInstance, load, load, save, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinarySerializer

public BinarySerializer()
Method Detail

createObjectInputStream

public ObjectInputStream createObjectInputStream(InputStream in)
                                          throws IOException
Creates the ObjectInputStream that deserializes a stream of objects from an InputStream using the default mechnism of Java. For this reason the serialized objects must be Serializable.

Specified by:
createObjectInputStream in class AbstractSerializer
Parameters:
in - the input stream
Returns:
the object input stream
Throws:
IOException - Signals that an I/O exception has occurred.

createObjectOutputStream

public ObjectOutputStream createObjectOutputStream(OutputStream out)
                                            throws IOException
Creates the ObjectOutputStream that serializees a stream of objects to the OutputStream using the default mechnism of Java. For this reason the serialized objects must be Serializable.

Specified by:
createObjectOutputStream in class AbstractSerializer
Parameters:
out - the out
Returns:
the object output stream
Throws:
IOException - Signals that an I/O exception has occurred.
See Also:
AbstractSerializer.createObjectOutputStream(java.io.OutputStream)


Copyright © 2002–2014 PatternTesting Team. All rights reserved.