|
||||||||||
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 java.io.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(java.io.InputStream is)
Creates a new CharDecoder object. |
Method Summary | |
---|---|
protected void |
charError(java.lang.String encoding)
To throws an exception when the input stream contains an invalid character. |
void |
dispose()
Disposes the associated resources. |
protected void |
endOfStreamError(java.lang.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 java.io.InputStream inputStream
protected byte[] buffer
protected int position
protected int count
Constructor Detail |
---|
protected AbstractCharDecoder(java.io.InputStream is)
is
- The stream to read.Method Detail |
---|
public void dispose() throws java.io.IOException
dispose
in interface CharDecoder
java.io.IOException
protected void fillBuffer() throws java.io.IOException
java.io.IOException
protected void charError(java.lang.String encoding) throws java.io.IOException
encoding
- The encoding name.
java.io.IOException
protected void endOfStreamError(java.lang.String encoding) throws java.io.IOException
encoding
- The encoding name.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |