Class DecoderStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.twelvemonkeys.io.enc.DecoderStream
All Implemented Interfaces:
Closeable, AutoCloseable

public final class DecoderStream extends FilterInputStream
An InputStream that provides on-the-fly decoding from an underlying stream.
Version:
$Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/io/enc/DecoderStream.java#2 $
See Also:
  • Field Details

  • Constructor Details

    • DecoderStream

      public DecoderStream(InputStream stream, Decoder decoder)
      Creates a new decoder stream and chains it to the input stream specified by the stream argument. The stream will use a default decode buffer size.
      Parameters:
      stream - the underlying input stream.
      decoder - the decoder that will be used to decode the underlying stream
      See Also:
    • DecoderStream

      public DecoderStream(InputStream stream, Decoder decoder, int bufferSize)
      Creates a new decoder stream and chains it to the input stream specified by the stream argument.
      Parameters:
      stream - the underlying input stream.
      decoder - the decoder that will be used to decode the underlying stream
      bufferSize - the size of the decode buffer
      See Also:
  • Method Details