Package org.apache.regexp
Interface CharacterIterator
-
- All Known Implementing Classes:
CharacterArrayCharacterIterator,ReaderCharacterIterator,StreamCharacterIterator,StringCharacterIterator
public interface CharacterIteratorEncapsulates different types of character sources - String, InputStream, ... Defines a set of common methods
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description charcharAt(int pos)booleanisEnd(int pos)Stringsubstring(int beginIndex)Stringsubstring(int beginIndex, int endIndex)
-
-
-
Method Detail
-
substring
String substring(int beginIndex, int endIndex)
- Returns:
- a substring
-
substring
String substring(int beginIndex)
- Returns:
- a substring
-
charAt
char charAt(int pos)
- Returns:
- a character at the specified position.
-
isEnd
boolean isEnd(int pos)
- Returns:
- true iff if the specified index is after the end of the character stream
-
-