StringCharacterIteratorpublic final class StringCharacterIterator extends Object implements CharacterIteratorEncapsulates String as CharacterIterator. |
Fields Summary |
---|
private final String | srcencapsulated |
Constructors Summary |
---|
public StringCharacterIterator(String src)
this.src = src;
|
Methods Summary |
---|
public char | charAt(int pos)
return src.charAt(pos);
| public boolean | isEnd(int pos)
return (pos >= src.length());
| public java.lang.String | substring(int beginIndex, int endIndex)
return src.substring(beginIndex, endIndex);
| public java.lang.String | substring(int beginIndex)
return src.substring(beginIndex);
|
|