public class FmtDuration extends CellProcessorAdaptor
For example, "PT72.345S" represents 1 minute, 12 seconds and 345 milliseconds.
next
Constructor and Description |
---|
FmtDuration()
Constructs a new FmtDuration processor, which formats a Joda
Duration as a String.
|
FmtDuration(CellProcessor next)
Constructs a new FmtDuration processor, which formats a Joda
Duration 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, validateInputNotNull
public FmtDuration()
public FmtDuration(CellProcessor next)
next
- next processor in the chainNullPointerException
- if 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 DurationCopyright © 2007–2015 Super CSV. All rights reserved.