patterntesting.runtime.io
Class XStreamSerializer

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

public final class XStreamSerializer
extends AbstractSerializer

This is a thin wrapper around the XStream class and xstream library.

Since:
1.4 (30.11.2013)
Author:
oliver

Constructor Summary
XStreamSerializer()
           
 
Method Summary
 ObjectInputStream createObjectInputStream(InputStream in)
          Creates the ObjectInputStream that deserializes a stream of objects from an InputStream using XStream.
 ObjectOutputStream createObjectOutputStream(OutputStream out)
          Creates the ObjectOutputStream that serializees a stream of objects to the OutputStream using XStream.
 
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

XStreamSerializer

public XStreamSerializer()
Method Detail

createObjectInputStream

public ObjectInputStream createObjectInputStream(InputStream in)
                                          throws IOException
Creates the ObjectInputStream that deserializes a stream of objects from an InputStream using XStream.

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 XStream.

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.