public final class DecoderStream extends FilterInputStream
InputStream that provides on-the-fly decoding from an underlying stream.EncoderStream,
Decoderin| Constructor and Description |
|---|
DecoderStream(InputStream stream,
Decoder decoder)
Creates a new decoder stream and chains it to the
input stream specified by the
stream argument. |
DecoderStream(InputStream stream,
Decoder decoder,
int bufferSize)
Creates a new decoder stream and chains it to the
input stream specified by the
stream argument. |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
int |
read() |
int |
read(byte[] bytes,
int offset,
int length) |
long |
skip(long length) |
close, mark, markSupported, read, resetpublic DecoderStream(InputStream stream, Decoder decoder)
stream argument.
The stream will use a default decode buffer size.stream - the underlying input stream.decoder - the decoder that will be used to decode the underlying streamFilterInputStream.inpublic DecoderStream(InputStream stream, Decoder decoder, int bufferSize)
stream argument.stream - the underlying input stream.decoder - the decoder that will be used to decode the underlying streambufferSize - the size of the decode bufferFilterInputStream.inpublic int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] bytes,
int offset,
int length)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long length)
throws IOException
skip in class FilterInputStreamIOExceptionCopyright © 2023. All rights reserved.