Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.ObjectInputStream createObjectInputStream​(java.io.InputStream in)
      Creates the ObjectInputStream that deserializes a stream of objects from an InputStream using XStream.
      java.io.ObjectOutputStream createObjectOutputStream​(java.io.OutputStream out)
      Creates the ObjectOutputStream that serializees a stream of objects to the OutputStream using XStream.
      • 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 java.io.ObjectInputStream createObjectInputStream​(java.io.InputStream in)
                                                          throws java.io.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:
        java.io.IOException - Signals that an I/O exception has occurred.