All Packages Class Hierarchy This Package Previous Next Index
Class java.text.FormatStatus
java.lang.Object
|
+----java.text.FormatStatus
- public class FormatStatus
- extends Object
Simple class, used in Format and its subclasses.
For use in aligning columns of numbers or other formatted objects,
without having to know
what the exact format is (e.g. different decimal, rational numbers, etc.)
Example: "123.45" -> 3 (i.e. after the 3)
while with the negative format "(12,345)" -> 7 (i.e., after the 5)
- See Also:
- Format
-
alignEnd
- Output: End offset of field in text.
-
alignField
- Input: Desired field to determine start and end offsets for.
-
alignStart
- Output: Start offset of field in text.
-
FormatStatus()
-
alignField
public int alignField
- Input: Desired field to determine start and end offsets for.
The meaning depends on the subclass of Format.
alignStart
public int alignStart
- Output: Start offset of field in text.
If the field does not occur in the text, 0 is returned.
alignEnd
public int alignEnd
- Output: End offset of field in text.
If the field does not occur in the text, 0 is returned.
FormatStatus
public FormatStatus()
All Packages Class Hierarchy This Package Previous Next Index