org.apache.batik.util.io
public abstract class AbstractCharDecoder extends Object implements CharDecoder
| Field Summary | |
|---|---|
| protected byte[] | buffer
The input buffer. |
| protected static int | BUFFER_SIZE
The buffer size. |
| protected int | count
The byte count in the buffer. |
| protected InputStream | inputStream
The input stream to read. |
| protected int | position
The current position in the buffer. |
| Constructor Summary | |
|---|---|
| protected | AbstractCharDecoder(InputStream is)
Creates a new CharDecoder object. |
| Method Summary | |
|---|---|
| protected void | charError(String encoding)
To throws an exception when the input stream contains an
invalid character. |
| void | dispose()
Disposes the associated resources. |
| protected void | endOfStreamError(String encoding)
To throws an exception when the end of stream was unexpected. |
| protected void | fillBuffer()
Fills the input buffer. |
Parameters: is The stream to read.
Parameters: encoding The encoding name.
Parameters: encoding The encoding name.