public class ObjectFieldProcessor extends Object implements FieldProcessor<Object>
| Constructor and Description |
|---|
ObjectFieldProcessor(String nullValue) |
| Modifier and Type | Method and Description |
|---|---|
Object |
cast(Object o)
For lenient writer: cast an objet to T type
|
String |
toCanonicalString(String text)
Prepare a value for a canonical String
|
Object |
toObject(String text)
Prepare a value for a consumer
|
String |
toString(Object value)
Prepare a value for CSV file.
|
public ObjectFieldProcessor(String nullValue)
public Object toObject(String text)
FieldProcessortoObject in interface FieldProcessor<Object>text - the CSV valuepublic String toString(Object value)
FieldProcessortoString in interface FieldProcessor<Object>value - the valuepublic String toCanonicalString(String text) throws MetaCSVReadException
FieldProcessortoCanonicalString in interface FieldProcessor<Object>text - the text valueMetaCSVReadException - if the text can't be converted to a T value.public Object cast(Object o)
FieldProcessorcast in interface FieldProcessor<Object>o - the objectCopyright © 2020–2021. All rights reserved.