Package org.apache.batik.util.io
Class StringDecoder
java.lang.Object
org.apache.batik.util.io.StringDecoder
- All Implemented Interfaces:
CharDecoder
This class reads a string.
- Version:
- $Id: StringDecoder.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
The number of chars in the string.protected int
The next char index.protected String
The string which contains the decoded characters.Fields inherited from interface org.apache.batik.util.io.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:
readChar
in interfaceCharDecoder
- Returns:
- a character or END_OF_STREAM.
- Throws:
IOException
-
dispose
Disposes the associated resources.- Specified by:
dispose
in interfaceCharDecoder
- Throws:
IOException
-