Package com.twelvemonkeys.io.enc
Class DecoderStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.twelvemonkeys.io.enc.DecoderStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
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 $
- Author:
- Harald Kuhr
- See Also:
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorsConstructorDescriptionDecoderStream
(InputStream stream, Decoder decoder) Creates a new decoder stream and chains it to the input stream specified by thestream
argument.DecoderStream
(InputStream stream, Decoder decoder, int bufferSize) Creates a new decoder stream and chains it to the input stream specified by thestream
argument. -
Method Summary
Methods inherited from class java.io.FilterInputStream
close, mark, markSupported, read, reset
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
DecoderStream
Creates a new decoder stream and chains it to the input stream specified by thestream
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
Creates a new decoder stream and chains it to the input stream specified by thestream
argument.- Parameters:
stream
- the underlying input stream.decoder
- the decoder that will be used to decode the underlying streambufferSize
- the size of the decode buffer- See Also:
-
-
Method Details
-
available
- Overrides:
available
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-