|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.util.io.AbstractCharDecoder
public abstract class AbstractCharDecoder
This class is the superclass of all the char decoders.
| 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. |
| Fields inherited from interface org.apache.batik.util.io.CharDecoder |
|---|
END_OF_STREAM |
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.batik.util.io.CharDecoder |
|---|
readChar |
| Field Detail |
|---|
protected static final int BUFFER_SIZE
protected InputStream inputStream
protected byte[] buffer
protected int position
protected int count
| Constructor Detail |
|---|
protected AbstractCharDecoder(InputStream is)
is - The stream to read.| Method Detail |
|---|
public void dispose()
throws IOException
dispose in interface CharDecoderIOException
protected void fillBuffer()
throws IOException
IOException
protected void charError(String encoding)
throws IOException
encoding - The encoding name.
IOException
protected void endOfStreamError(String encoding)
throws IOException
encoding - The encoding name.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||