org.compass.core.converter.basic.format
Class TextFormatFormatter

java.lang.Object
  extended by org.compass.core.converter.basic.format.TextFormatFormatter
All Implemented Interfaces:
Formatter

public class TextFormatFormatter
extends Object
implements Formatter

A Formatter implementation that uses Format.

Author:
kimchy

Constructor Summary
TextFormatFormatter(Format format)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFormatFormatter

public TextFormatFormatter(Format format)
Method Detail

format

public String format(Object obj)
Description copied from interface: Formatter
Formats the given object to String.

Specified by:
format in interface Formatter

parse

public Object parse(String str)
             throws ParseException
Description copied from interface: Formatter
Parse the given string to an Object.

Specified by:
parse in interface Formatter
Throws:
ParseException

isThreadSafe

public boolean isThreadSafe()
Description copied from interface: Formatter
Returns true if this formatter is thread safe, false otherwise.

Specified by:
isThreadSafe in interface Formatter


Copyright (c) 2004-2008 The Compass Project.