org.compass.core.converter.basic.format
Interface Formatter

All Known Implementing Classes:
TextFormatFormatter, ThreadSafeFormat

public interface Formatter

A generic interface allowing to format objects to Strings and parse them from Strings.

Author:
kimchy

Method Summary
 String format(Object obj)
          Formats the given object to String.
 boolean isThreadSafe()
          Returns true if this formatter is thread safe, false otherwise.
 Object parse(String str)
          Parse the given string to an Object.
 

Method Detail

format

String format(Object obj)
Formats the given object to String.


parse

Object parse(String str)
             throws ParseException
Parse the given string to an Object.

Throws:
ParseException

isThreadSafe

boolean isThreadSafe()
Returns true if this formatter is thread safe, false otherwise.



Copyright (c) 2004-2008 The Compass Project.