public abstract class Format
- Object
- Format
ImplementsCloneable
Known subtypesDateFormat
An abstract class for parsing and formatting localisation sensitive information, compatible with JDK 6.
Constructors
public Format() |
Methods
public abstract String format(Object source)
throws IllegalArgumentException | Format an object. |
public abstract Object parseObject(String source)
throws ParseException | Parse a string to an object. |
Inherited methods
Constructor details
Format
public Format()Method details
format
public abstract String format(Object source)
throws IllegalArgumentExceptionFormat an object.
Parameters
sourceObject- object to be formatted to text.
Returns
formatted text.
Throws
IllegalArgumentException- if the source can not be formatted.
parseObject
public abstract Object parseObject(String source)
throws ParseExceptionParse a string to an object.
Parameters
sourceString- document to be parsed.
Returns
parsed object.
Throws
ParseException- if the source could not be parsed.