|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adfnmc.java.text.Format
public abstract class Format
Format is the abstract superclass of classes which format and parse objects according to Locale specific rules.
Nested Class Summary | |
---|---|
static class |
Format.Field
This inner class is used to represent Format attributes in the AttributedCharacterIterator that formatToCharacterIterator() method returns in the Format subclasses. |
Constructor Summary | |
---|---|
Format()
Constructs a new instance of Format. |
Method Summary | |
---|---|
java.lang.String |
format(java.lang.Object object)
Formats the specified object using the rules of this Format. |
abstract java.lang.StringBuffer |
format(java.lang.Object object,
java.lang.StringBuffer buffer,
FieldPosition field)
Formats the specified object into the specified StringBuffer using the rules of this Format. |
java.lang.Object |
parseObject(java.lang.String string)
Parse the specified String using the rules of this Format. |
abstract java.lang.Object |
parseObject(java.lang.String string,
ParsePosition position)
Parse the specified String starting at the index specified by the ParsePosition. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Format()
Method Detail |
---|
public final java.lang.String format(java.lang.Object object)
object
- the object to format
java.lang.IllegalArgumentException
- when the object cannot be formatted by this Formatpublic abstract java.lang.StringBuffer format(java.lang.Object object, java.lang.StringBuffer buffer, FieldPosition field)
object
- the object to formatbuffer
- the StringBufferfield
- the FieldPosition
buffer
java.lang.IllegalArgumentException
- when the object cannot be formatted by this Formatpublic java.lang.Object parseObject(java.lang.String string) throws ParseException
string
- the String to parse
ParseException
- when an error occurs during parsingpublic abstract java.lang.Object parseObject(java.lang.String string, ParsePosition position)
string
- the String to parseposition
- the ParsePosition, updated on return with the index following the parsed text, or on error the index is
unchanged and the error index is set to the index where the error occurred
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |