Class ObjectOutputSerializer

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object deserialize​(java.io.InputStream in)
      Read a single entry from the stream, returns null if the stream is closed/finished.
      static ObjectOutputSerializer getInstance()
      Get a static ObjectOutputSerializer instance.
      protected static java.lang.Object readObject​(java.io.InputStream in)
      XStream deserialization of next object from in.
      void serialize​(java.lang.Object obj, java.io.OutputStream out)
      Write a single object to the stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectOutputSerializer

        public ObjectOutputSerializer()
    • Method Detail

      • serialize

        public void serialize​(java.lang.Object obj,
                              java.io.OutputStream out)
                       throws java.io.IOException
        Description copied from interface: StreamingObjectSerializer
        Write a single object to the stream. It is possible that more calls to serialize will be made with more objects
        Specified by:
        serialize in interface StreamingObjectSerializer
        Throws:
        java.io.IOException
      • deserialize

        public java.lang.Object deserialize​(java.io.InputStream in)
                                     throws java.io.IOException
        Description copied from interface: StreamingObjectSerializer
        Read a single entry from the stream, returns null if the stream is closed/finished. Future calls to deserialize should return the next object, ie this should not 'over-read'.
        Specified by:
        deserialize in interface StreamingObjectSerializer
        Throws:
        java.io.IOException
      • getInstance

        public static ObjectOutputSerializer getInstance()
        Get a static ObjectOutputSerializer instance.
      • readObject

        protected static java.lang.Object readObject​(java.io.InputStream in)
                                              throws java.io.IOException
        XStream deserialization of next object from in.
        Throws:
        java.io.IOException