Class StringDecoder
java.lang.Object
org.apache.batik.util.io.StringDecoder
- All Implemented Interfaces:
CharDecoder
This class reads a string.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe number of chars in the string.protected intThe next char index.protected StringThe string which contains the decoded characters.Fields inherited from interface CharDecoder
END_OF_STREAM -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
string
The string which contains the decoded characters. -
length
protected int lengthThe number of chars in the string. -
next
protected int nextThe next char index.
-
-
Constructor Details
-
StringDecoder
Creates a new StringDecoder.
-
-
Method Details
-
readChar
Reads the next character.- Specified by:
readCharin interfaceCharDecoder- Returns:
- a character or END_OF_STREAM.
- Throws:
IOException
-
dispose
Disposes the associated resources.- Specified by:
disposein interfaceCharDecoder- Throws:
IOException
-