CharacterArrayCharacterIteratorpublic final class CharacterArrayCharacterIterator extends Object implements CharacterIterator
Fields Summary |
---|
private final char[] | srcencapsulated | private final int | offoffset in the char array | private final int | lenused portion of the array |
Constructors Summary |
---|
public CharacterArrayCharacterIterator(char[] src, int off, int len)
this.src = src;
this.off = off;
this.len = len;
|
Methods Summary |
---|
public char | charAt(int pos)
return src[off + pos];
| public boolean | isEnd(int pos)
return (pos >= len);
| public java.lang.String | substring(int offset, int length)
return new String(src, off + offset, length);
| public java.lang.String | substring(int offset)
return new String(src, off + offset, len);
|
|