<!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.FieldPosition
</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.DecimalFormatSymbols.html#_top_">Previous</a>  <a href="java.text.Format.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.text.FieldPosition
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.text.FieldPosition
</pre>
<hr>
<dl>
  <dt> public class <b>FieldPosition</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
<code>FieldPosition</code> is a simple class used by <code>Format</code>
 and its subclasses to identify fields in formatted output. Fields are
 identified by constants, whose names typically end with <code>_FIELD</code>,
 defined in the various subclasses of <code>Format</code>. See
 <code>ERA_FIELD</code> and its friends in <code>DateFormat</code> for
 an example.
 <p>
 <code>FieldPosition</code> keeps track of the position of the
 field within the formatted output with two indices: the index
 of the first character of the field and the index of the last
 character of the field.
 <p>
 One version of the <code>format</code> method in the various
 <code>Format</code> classes requires a <code>FieldPosition</code>
 object as an argument. You use this <code>format</code> method
 to perform partial formatting or to get information about the
 formatted output (such as the position of a field).
<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="#FieldPosition(int)"><b>FieldPosition</b></a>(int)
  <dd>  Creates a FieldPosition object for the given field.
</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="#getBeginIndex()"><b>getBeginIndex</b></a>()
  <dd>  Retrieve the index of the first character in the requested field.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getEndIndex()"><b>getEndIndex</b></a>()
  <dd>  Retrieve the index of the character following the last character in the
 requested field.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getField()"><b>getField</b></a>()
  <dd>  Retrieve the field identifier.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="FieldPosition"></a>
<a name="FieldPosition(int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>FieldPosition</b>
<pre>
 public FieldPosition(int field)
</pre>
<dl>
  <dd> Creates a FieldPosition object for the given field.  Fields are
 identified by constants, whose names typically end with _FIELD,
 in the various subclasses of Format.
<p>
  <dd><dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.text.NumberFormat.html#INTEGER_FIELD">INTEGER_FIELD</a>, <a href="java.text.NumberFormat.html#FRACTION_FIELD">FRACTION_FIELD</a>, <a href="java.text.DateFormat.html#YEAR_FIELD">YEAR_FIELD</a>, <a href="java.text.DateFormat.html#MONTH_FIELD">MONTH_FIELD</a>
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getField()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getField"><b>getField</b></a>
<pre>
 public int getField()
</pre>
<dl>
  <dd> Retrieve the field identifier.
<p>
</dl>
<a name="getBeginIndex()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getBeginIndex"><b>getBeginIndex</b></a>
<pre>
 public int getBeginIndex()
</pre>
<dl>
  <dd> Retrieve the index of the first character in the requested field.
<p>
</dl>
<a name="getEndIndex()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getEndIndex"><b>getEndIndex</b></a>
<pre>
 public int getEndIndex()
</pre>
<dl>
  <dd> Retrieve the index of the character following the last character in the
 requested field.
<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.DecimalFormatSymbols.html#_top_">Previous</a>  <a href="java.text.Format.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
