org.apache.regexp
public final class StreamCharacterIterator extends Object implements CharacterIterator
Version: CVS $Id: StreamCharacterIterator.java 518156 2007-03-14 14:31:26Z vgritsenko $
| Field Summary | |
|---|---|
| StringBuffer | buff Buffer of read chars |
| boolean | closed read end? |
| InputStream | is Underlying is |
| Constructor Summary | |
|---|---|
| StreamCharacterIterator(InputStream is) | |
| Method Summary | |
|---|---|
| char | charAt(int pos) |
| void | ensure(int idx) Reads chars up to the idx |
| boolean | isEnd(int pos) |
| int | read(int n) Reads n characters from the stream and appends them to the buffer |
| void | readAll() Reads rest of the stream. |
| String | substring(int beginIndex, int endIndex) |
| String | substring(int beginIndex) |
Parameters: is an InputStream, which is parsed
Returns: a character at the specified position.
Returns: true iff if the specified index is after the end of the character stream
Returns: a substring
Returns: a substring