Code example for CharacterIterator

Methods: next

0
    private char c;
    private Object token;
    private StringBuffer buf = new StringBuffer();
 
    private char next() { 
        c = it.next();
        return c;
    } 
 
    private void skipWhiteSpace() { 
        while (Character.isWhitespace(c)) {
            next(); 
        } 
    } 
 
    public Object read(CharacterIterator ci, int start) {
        it = ci;
        switch (start) {
        case FIRST:
            c = it.first();
            break;