Interface Deserializer<T>


  • public interface Deserializer<T>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Close the underlying input stream and clear up any resources.
      T deserialize​(T t)
      Deserialize the next object from the underlying input stream.
      void open​(InputStream in)
      Prepare the deserializer for reading.
    • Method Detail

      • deserialize

        T deserialize​(T t)
               throws IOException

        Deserialize the next object from the underlying input stream. If the object t is non-null then this deserializer may set its internal state to the next object read from the input stream. Otherwise, if the object t is null a new deserialized object will be created.

        Returns:
        the deserialized object
        Throws:
        IOException
      • close

        void close()
            throws IOException

        Close the underlying input stream and clear up any resources.

        Throws:
        IOException