public abstract class Format

  1. Object
  2. 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 IllegalArgumentExceptionFormat an object.
public abstract Object parseObject(String source) throws ParseExceptionParse an string to an object.

Inherited methods

Constructor details

Format

public Format()

Method details

format

public abstract String format(Object source) throws IllegalArgumentException
Format an object.

Parameters

source Object
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 ParseException
Parse an string to an object.

Parameters

source String
document to be parsed.

Returns

parsed object.

Throws

ParseException
if the source could not be parsed.