CharDecoderpublic class StringDecoder extends java.lang.Object implements CharDecoder
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
length |
The number of chars in the string.
|
protected int |
next |
The next char index.
|
protected java.lang.String |
string |
The string which contains the decoded characters.
|
END_OF_STREAM| Constructor | Description |
|---|---|
StringDecoder(java.lang.String s) |
Creates a new StringDecoder.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
dispose() |
Disposes the associated resources.
|
int |
readChar() |
Reads the next character.
|
protected java.lang.String string
protected int length
protected int next
public StringDecoder(java.lang.String s)
public int readChar()
throws java.io.IOException
readChar in interface CharDecoderjava.io.IOExceptionpublic void dispose()
throws java.io.IOException
dispose in interface CharDecoderjava.io.IOExceptionCopyright ? 2018 Apache Software Foundation. All Rights Reserved.