Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
public interface CharacterIterator
Known subtypesCharacterArrayCharacterIterator, ReaderCharacterIterator, StreamCharacterIterator, StringCharacterIterator
Encapsulates different types of character sources - String, InputStream, …
Defines a set of common methods
Methods
public abstract String substring(int beginIndex, int endIndex) | |
public abstract String substring(int beginIndex) | |
public abstract char charAt(int pos) | |
public abstract boolean isEnd(int pos) |
Method details
substring
public abstract String substring(int beginIndex, int endIndex)Returns
a substring
substring
public abstract String substring(int beginIndex)Returns
a substring
charAt
public abstract char charAt(int pos)Returns
a character at the specified position.
isEnd
public abstract boolean isEnd(int pos)Returns
true iff if the specified index is after the end of the character stream