FileDocCategorySizeDatePackage
StringCharacterIterator.javaAPI DocJava SE 5 API3654Fri Aug 26 14:55:28 BST 2005com.sun.org.apache.regexp.internal

StringCharacterIterator

public final class StringCharacterIterator extends Object implements CharacterIterator
Encapsulates String
author
Ales Novak

Fields Summary
private final String
src
encapsulated
Constructors Summary
public StringCharacterIterator(String src)

param
src - encapsulated String

        this.src = src;
    
Methods Summary
public charcharAt(int pos)

return
a character at the specified position.

        return src.charAt(pos);
    
public booleanisEnd(int pos)

return
true iff if the specified index is after the end of the character stream

        return (pos >= src.length());
    
public java.lang.Stringsubstring(int offset, int length)

return
a substring

        return src.substring(offset, length);
    
public java.lang.Stringsubstring(int offset)

return
a substring

        return src.substring(offset);