public class TextFieldProcessor extends Object implements ReadFieldProcessor<String>, FieldProcessor<String>
| Constructor and Description |
|---|
TextFieldProcessor(String nullValue) |
| Modifier and Type | Method and Description |
|---|---|
String |
cast(Object o)
For lenient writer: cast an objet to T type
|
String |
toCanonicalString(String text)
Return a canonical version of the value
|
String |
toObject(String text)
Prepare a value for a consumer.
|
String |
toString(String value)
Prepare a value for CSV file.
|
public TextFieldProcessor(String nullValue)
public String toObject(String text)
ReadFieldProcessortoObject in interface FieldProcessor<String>toObject in interface ReadFieldProcessor<String>text - the CSV valuepublic String toString(String value)
FieldProcessortoString in interface FieldProcessor<String>value - the valuepublic String toCanonicalString(String text)
ReadFieldProcessortoCanonicalString in interface FieldProcessor<String>toCanonicalString in interface ReadFieldProcessor<String>text - the value as stringpublic String cast(Object o)
FieldProcessorcast in interface FieldProcessor<String>o - the objectCopyright © 2020–2021. All rights reserved.