net.sf.anupam.csv.formatters
Class DoNothingFormatter
java.lang.Object
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" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoNothingFormatter
public DoNothingFormatter()
- Constructor for DoNothingFormatter.
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)
© Anupam Sengupta 2005