public class ParseDuration extends CellProcessorAdaptor
For example, "PT72.345S" represents 1 minute, 12 seconds and 345 milliseconds.
next| Constructor and Description |
|---|
ParseDuration()
Constructs a new ParseDuration processor, which parses a String
as a Joda Duration.
|
ParseDuration(CellProcessor next)
Constructs a new ParseDuration processor, which parses a String
as a Joda Duration, then calls the next processor in the chain.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(Object value,
CsvContext context) |
toString, validateInputNotNullpublic ParseDuration()
public ParseDuration(CellProcessor next)
next - the next processor in the chainpublic Object execute(Object value, CsvContext context)
SuperCsvCellProcessorException - if value is null or is not a StringCopyright © 2007-2015 Super CSV. All Rights Reserved.