public class FmtPeriod extends CellProcessorAdaptor
Period.toString().
For example, "P6Y3M7D" represents 6 years, 3 months, 7 days.next| Constructor and Description |
|---|
FmtPeriod()
Constructs a new FmtPeriod processor, which formats a
Period as a String.
|
FmtPeriod(CellProcessor next)
Constructs a new FmtPeriod processor, which formats a
Period as a String, then calls the next processor in the chain.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(Object value,
CsvContext context)
This method is invoked by the framework when the processor needs to process data or check constraints.
|
toString, validateInputNotNullpublic FmtPeriod()
public FmtPeriod(CellProcessor next)
next - the next processor in the chainNullPointerException - if formatter or next is nullpublic Object execute(Object value, CsvContext context)
value - the value to be processedcontext - the CSV contextSuperCsvCellProcessorException - if value is null or not a PeriodCopyright © 2007–2015 Super CSV. All rights reserved.