Class 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
    • 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 the default mechnism of Java.
      java.io.ObjectOutputStream createObjectOutputStream​(java.io.OutputStream out)
      Creates the ObjectOutputStream that serializees a stream of objects to the OutputStream using the default mechnism of Java.
      • 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 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 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:
        java.io.IOException - Signals that an I/O exception has occurred.
      • createObjectOutputStream

        public java.io.ObjectOutputStream createObjectOutputStream​(java.io.OutputStream out)
                                                            throws java.io.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:
        java.io.IOException - Signals that an I/O exception has occurred.
        See Also:
        AbstractSerializer.createObjectOutputStream(java.io.OutputStream)