Package rife.cmf.format
Class PlainTextFormatter
java.lang.Object
rife.cmf.format.PlainTextFormatter
Formats plain test
Content
data.
This merely executes the provided transformer on the data.
- Since:
- 1.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionformat
(Content content, ContentTransformer<String> transformer) Formats raw data and returns it in aDataType
that's supported by the back-end stores.
-
Constructor Details
-
PlainTextFormatter
public PlainTextFormatter()
-
-
Method Details
-
format
public String format(Content content, ContentTransformer<String> transformer) throws FormatException Description copied from interface:Formatter
Formats raw data and returns it in aDataType
that's supported by the back-end stores.- Specified by:
format
in interfaceFormatter<String,
String> - Parameters:
content
- aContent
instance that contains the raw data with additional information that describes the storage and formatting of the processed datatransformer
- a transformer that will be used to modify raw data after it has been loaded; ornull
if the data shouldn't be transformed- Returns:
- the result of the formatting of the raw data
- Throws:
FormatException
-