Interface DecoderFactory.Decoder<T>

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

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

      • decode

        T decode()
          throws 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:
        IOException - if fail to decode