public class GenericDecoder extends Object implements CharDecoder
| Modifier and Type | Field and Description |
|---|---|
protected Reader |
reader
The reader used to decode the stream.
|
END_OF_STREAM| Constructor and Description |
|---|
GenericDecoder(InputStream is,
String enc)
Creates a new GenericDecoder.
|
GenericDecoder(Reader r)
Creates a new GenericDecoder.
|
protected Reader reader
public GenericDecoder(InputStream is, String enc) throws IOException
is - The input stream to decode.enc - The Java encoding name.IOExceptionpublic GenericDecoder(Reader r)
r - The reader to use.public int readChar()
throws IOException
readChar in interface CharDecoderIOExceptionpublic void dispose()
throws IOException
dispose in interface CharDecoderIOExceptionCopyright © 2000–2018 Apache Software Foundation. All rights reserved.