public class DateFieldProcessor extends Object implements FieldProcessor<Date>
| Constructor and Description |
|---|
DateFieldProcessor(SimpleDateFormat simpleDateFormat,
String locale,
String nullValue) |
| Modifier and Type | Method and Description |
|---|---|
Date |
toObject(String text)
Prepare a value for a consumer
|
String |
toString(Date date)
Prepare a value for CSV file.
|
public DateFieldProcessor(SimpleDateFormat simpleDateFormat, String locale, String nullValue)
public Date toObject(String text) throws MetaCSVReadException
FieldProcessortoObject in interface FieldProcessor<Date>text - the CSV valueMetaCSVReadExceptionpublic String toString(Date date)
FieldProcessortoString in interface FieldProcessor<Date>date - the valueCopyright © 2020–2021. All rights reserved.