CSVObjects Framework

net.sf.anupam.csv.formatters
Class DoNothingFormatter

java.lang.Object
  extended by net.sf.anupam.csv.formatters.DoNothingFormatter
All Implemented Interfaces:
CSVFieldFormatter

final class DoNothingFormatter
extends Object
implements CSVFieldFormatter

A No-Op formatter that acts as the default if no explicit formatter is configured for a CSV field. The formatter performs an Identity operation on the input and returns the same as the "formatted" result.

The declarative name of this formatter is none.

Since:
1.5
Version:
$Revision: 1.2 $
Author:
Anupam Sengupta
CSV Formatter Mapping:
CSV Formatter Name: "doNothing"

Constructor Summary
DoNothingFormatter()
          Constructor for DoNothingFormatter.
 
Method Summary
 String format(String value)
          Formats the value and returns the same value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoNothingFormatter

public DoNothingFormatter()
Constructor for DoNothingFormatter.

Method Detail

format

public String format(String value)
Formats the value and returns the same value.

Specified by:
format in interface CSVFieldFormatter
Parameters:
value - the value to be transformed
Returns:
the same value
See Also:
CSVFieldFormatter.format(String)

SourceForge.net Logo

© Anupam Sengupta 2005