Code example for ParsePosition

Methods: getIndex, setIndex

0
            } 
            if (bufPos == buf.length) {
                buf = null;
            } 
        } else { 
            int i = pos.getIndex() + count;
            pos.setIndex(i);
            if (i > text.length()) {
                throw new IllegalArgumentException();
            } 
        } 
    } 
 
    /** 
     * Returns a string representation of this object, consisting of the 
     * characters being iterated, with a '|' marking the current position. 
     * Position within an expanded variable is <em>not</em> indicated. 
     * @return a string representation of this object 
     */ 
    public String toString() {
        int b = pos.getIndex();