public class StringDecoder extends java.lang.Object implements CharDecoder
| Modifier and Type | Field and 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 and Description |
|---|
StringDecoder(java.lang.String s)
Creates a new StringDecoder.
|
| Modifier and Type | Method and 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 © 2022 Apache Software Foundation. All Rights Reserved.