<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.text.ParsePosition
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.text.html">This Package</a>  <a href="java.text.NumberFormat.html#_top_">Previous</a>  <a href="java.text.RuleBasedCollator.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.text.ParsePosition
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.text.ParsePosition
</pre>
<hr>
<dl>
  <dt> public class <b>ParsePosition</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
<code>ParsePosition</code> is a simple class used by <code>Format</code>
 and its subclasses to keep track of the current position during parsing.
 The <code>parseObject</code> method in the various <code>Format</code>
 classes requires a <code>ParsePosition</code> object as an argument.
 <p> 
 By design, as you parse through a string with different formats,
 you can use the same <code>ParsePosition</code>, since the index parameter
 records the current position.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> Format
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ParsePosition(int)"><b>ParsePosition</b></a>(int)
  <dd>  Create a new ParsePosition with the given initial index.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getIndex()"><b>getIndex</b></a>()
  <dd>  Retrieve the current parse position.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setIndex(int)"><b>setIndex</b></a>(int)
  <dd>  Set the current parse position.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="ParsePosition"></a>
<a name="ParsePosition(int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>ParsePosition</b>
<pre>
 public ParsePosition(int index)
</pre>
<dl>
  <dd> Create a new ParsePosition with the given initial index.
<p>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getIndex()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getIndex"><b>getIndex</b></a>
<pre>
 public int getIndex()
</pre>
<dl>
  <dd> Retrieve the current parse position.  On input to a parse method, this
 is the index of the character at which parsing will begin; on output, it
 is the index of the character following the last character parsed.
<p>
</dl>
<a name="setIndex(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setIndex"><b>setIndex</b></a>
<pre>
 public void setIndex(int index)
</pre>
<dl>
  <dd> Set the current parse position.
<p>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.text.html">This Package</a>  <a href="java.text.NumberFormat.html#_top_">Previous</a>  <a href="java.text.RuleBasedCollator.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
