CharDecoderpublic class GenericDecoder extends java.lang.Object implements CharDecoder
| Modifier and Type | Field | Description |
|---|---|---|
protected java.io.Reader |
reader |
The reader used to decode the stream.
|
END_OF_STREAM| Constructor | Description |
|---|---|
GenericDecoder(java.io.InputStream is,
java.lang.String enc) |
Creates a new GenericDecoder.
|
GenericDecoder(java.io.Reader r) |
Creates a new GenericDecoder.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
dispose() |
Disposes the associated resources.
|
int |
readChar() |
Reads the next character.
|
public GenericDecoder(java.io.InputStream is,
java.lang.String enc)
throws java.io.IOException
is - The input stream to decode.enc - The Java encoding name.java.io.IOExceptionpublic GenericDecoder(java.io.Reader r)
r - The reader to use.public int readChar()
throws java.io.IOException
readChar in interface CharDecoderjava.io.IOExceptionpublic void dispose()
throws java.io.IOException
dispose in interface CharDecoderjava.io.IOExceptionCopyright ? 2018 Apache Software Foundation. All Rights Reserved.