public class GenericDecoder extends java.lang.Object implements CharDecoder
| Modifier and Type | Field and Description |
|---|---|
protected java.io.Reader |
reader
The reader used to decode the stream.
|
END_OF_STREAM| Constructor and 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 and 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 ? 2015 Apache Software Foundation. All Rights Reserved.