Interface ItemDecoder<T>

  • All Superinterfaces:
    AutoCloseable, Closeable
    All Known Implementing Classes:
    AbstractInputStreamItemDecoder, AvroDecoder, CSVDecoder

    public interface ItemDecoder<T>
    extends Closeable
    A functional interface for stateful decoders, decoding object from some binary source. Each decoder should have a corresponding DecoderFactory, which is the type that pipes work with. Implementations typically receive a non-buffered input stream in their constructor, and do the necessary pre-processing (such as adding a buffered wrapper) there.
    Author:
    Eyal Schneider