API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.text. ParsePosition View Source
Author(s)
Mark Davis
Since
Version
1.20 11/17/05
Serial
Hierarchy
 Object
      ParsePosition
Implements
Subclasses
Description
public class ParsePosition
  ParsePosition is a simple class used by Format and its subclasses to keep track of the current position during parsing.
See also:    Format
Constructors
public ParsePosition (int index)
Create a new ParsePosition with the given initial index.
Methods
Hide/Show inherited methods
public boolean equals (Object obj)
Overrides equals
public int getErrorIndex ()
  Retrieve the index at which an error occurred, or -1 if the error index has not been set.
public int getIndex ()
  Retrieve the current parse position.
public int hashCode ()
  Returns a hash code for this ParsePosition.
public void setErrorIndex (int ei)
  Set the index at which a parse error occurred.
public void setIndex (int index)
Set the current parse position.
public String toString ()
  Return a string representation of this ParsePosition.
Fields
Hide/Show inherited fields
pack-private int errorIndex
pack-private int index
  Input: the place you start parsing.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar