patterntesting.runtime.io
Class BinarySerializer
java.lang.Object
patterntesting.runtime.io.AbstractSerializer
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinarySerializer
public BinarySerializer()
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.