org.apache.regexp
public final class ReaderCharacterIterator extends Object implements CharacterIterator
Version: CVS $Id: ReaderCharacterIterator.java 518156 2007-03-14 14:31:26Z vgritsenko $
Field Summary | |
---|---|
StringBuffer | buff Buffer of read chars |
boolean | closed read end? |
Reader | reader Underlying reader |
Constructor Summary | |
---|---|
ReaderCharacterIterator(Reader reader) |
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: reader a Reader, 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