Interface DecoderFactory.Decoder<T>

  • Type Parameters:
    T - element type.
    All Superinterfaces:
    java.io.Serializable
    Enclosing interface:
    DecoderFactory<T>

    public static interface DecoderFactory.Decoder<T>
    extends java.io.Serializable
    Interface of Decoder.
    • Method Detail

      • decode

        T decode()
          throws java.io.IOException
        Decodes the a value from the given input stream. It have to be able to decode the given stream consequently by calling this method repeatedly. Because there are many elements in the input stream, the stream should not be closed.
        Returns:
        the decoded element
        Throws:
        java.io.IOException - if fail to decode