org.apache.batik.util.io
public class GenericDecoder extends Object implements CharDecoder
Field Summary | |
---|---|
protected Reader | reader
The reader used to decode the stream. |
Constructor Summary | |
---|---|
GenericDecoder(InputStream is, String enc)
Creates a new GenericDecoder. | |
GenericDecoder(Reader r)
Creates a new GenericDecoder. |
Method Summary | |
---|---|
void | dispose()
Disposes the associated resources. |
int | readChar()
Reads the next character. |
Parameters: is The input stream to decode. enc The Java encoding name.
Parameters: r The reader to use.
Returns: a character or END_OF_STREAM.