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.IOException
public GenericDecoder(java.io.Reader r)
r
- The reader to use.public int readChar() throws java.io.IOException
readChar
in interface CharDecoder
java.io.IOException
public void dispose() throws java.io.IOException
dispose
in interface CharDecoder
java.io.IOException
Copyright © 2022 Apache Software Foundation. All Rights Reserved.