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.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes the associated resources.
|
int |
readChar()
Reads the next character.
|
protected Reader reader
public GenericDecoder(InputStream is, String enc) throws IOException
is
- The input stream to decode.enc
- The Java encoding name.IOException
public GenericDecoder(Reader r)
r
- The reader to use.public int readChar() throws IOException
readChar
in interface CharDecoder
IOException
public void dispose() throws IOException
dispose
in interface CharDecoder
IOException
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.