com.ice.text
Class HexNumberFormat
java.lang.Object
|
+--java.text.Format
|
+--com.ice.text.HexNumberFormat
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class HexNumberFormat
- extends java.text.Format
The HexNumberFormat class implements the code necessary
to format and parse Hexidecimal integer numbers.
- Version:
- $Revision: 1.2 $
- Author:
- Timothy Gerard Endres, time@ice.com.
- See Also:
NumberFormat
,
Serialized Form
Field Summary |
static java.lang.String |
RCS_ID
|
static java.lang.String |
RCS_REV
|
Method Summary |
java.lang.String |
format(int hexNum)
|
java.lang.StringBuffer |
format(java.lang.Object hexInt,
java.lang.StringBuffer appendTo,
java.text.FieldPosition fieldPos)
|
static HexNumberFormat |
getInstance()
|
int |
parse(java.lang.String source)
|
java.lang.Object |
parseObject(java.lang.String source,
java.text.ParsePosition pos)
|
Methods inherited from class java.text.Format |
clone, format, formatToCharacterIterator, parseObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RCS_ID
public static final java.lang.String RCS_ID
- See Also:
- Constant Field Values
RCS_REV
public static final java.lang.String RCS_REV
- See Also:
- Constant Field Values
HexNumberFormat
public HexNumberFormat(java.lang.String pattern)
getInstance
public static final HexNumberFormat getInstance()
format
public java.lang.String format(int hexNum)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
format
public java.lang.StringBuffer format(java.lang.Object hexInt,
java.lang.StringBuffer appendTo,
java.text.FieldPosition fieldPos)
throws java.lang.IllegalArgumentException
- Specified by:
format
in class java.text.Format
java.lang.IllegalArgumentException
parse
public int parse(java.lang.String source)
throws java.text.ParseException
java.text.ParseException
parseObject
public java.lang.Object parseObject(java.lang.String source,
java.text.ParsePosition pos)
- Specified by:
parseObject
in class java.text.Format
Copyright © 1997-2003, Timothy G. Endres, All Rights Reserved.