public class StringDecoder extends 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 String |
string
The string which contains the decoded characters.
|
END_OF_STREAM
Constructor and Description |
---|
StringDecoder(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 String string
protected int length
protected int next
public StringDecoder(String s)
public int readChar() throws IOException
readChar
in interface CharDecoder
IOException
public void dispose() throws IOException
dispose
in interface CharDecoder
IOException
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.