ParsePositionNameParsePositionSynopsis
DescriptionThe 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. Class Summary
public class java.text.ParsePosition extends java.lang.Object { // Constructors public ParsePosition(int index); // Instance Methods public int getIndex(); public void setIndex(int index); } ConstructorsParsePositionpublic ParsePosition(int index)
Instance MethodsgetIndexpublic int getIndex()
setIndexpublic void setIndex(int index)
Inherited Methods
See AlsoDateFormat, FieldPosition, Format, MessageFormat, NumberFormat, String |
|