java.text.ParsePosition
java.lang.Object
None
None
New as of JDK 1.1
The ParsePosition class encapsulates information about the current position in a text string. A ParsePosition can be passed to the parse() method of a Format subclass to cause parsing to start at the index of the ParsePosition. After an object has been parsed from the string, the index of the ParsePosition is updated to point to just after the text that was parsed. Thus, the same ParsePosition can be passed to multiple Format objects to parse through a complex string.
public class java.text.ParsePosition extends java.lang.Object { // Constructors public ParsePosition(int index); // Instance Methods public int getIndex(); public void setIndex(int index); }
The initial position.
This constructor creates a ParsePosition object that is initialized to the given position.
The current position of this ParsePosition.
This method returns the current position of this ParsePosition.
The new position of this ParsePosition.
This method sets the current position of this ParsePosition.
Method | Inherited From | Method | Inherited From |
---|---|---|---|
clone() |
Object |
equals(Object) |
Object |
finalize() |
Object |
getClass() |
Object |
hashCode() |
Object |
notify() |
Object |
notifyAll() |
Object |
toString() |
Object |
wait() |
Object |
wait(long) |
Object |
wait(long, int) |
Object |
DateFormat, FieldPosition, Format, MessageFormat, NumberFormat, String