public abstract class AbstractTemporalAccessorFormattingProcessor<T extends TemporalAccessor> extends CellProcessorAdaptor
TemporalAccessor
types to Strings.next
Constructor and Description |
---|
AbstractTemporalAccessorFormattingProcessor()
Constructs a new AbstractTemporalAccessorFormattingProcessor processor,
which formats the type as a String.
|
AbstractTemporalAccessorFormattingProcessor(CellProcessor next)
Constructs a new AbstractTemporalAccessorFormattingProcessor processor,
which formats the type as a String, then calls the next processor in
the chain.
|
AbstractTemporalAccessorFormattingProcessor(DateTimeFormatter formatter)
Constructs a new AbstractTemporalAccessorFormattingProcessor processor,
which formats the type as a String using the supplied formatter.
|
AbstractTemporalAccessorFormattingProcessor(DateTimeFormatter formatter,
CellProcessor next)
Constructs a new AbstractTemporalAccessorFormattingProcessor processor,
which formats the type as a String using the supplied formatter,
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.
|
protected abstract Class<T> |
getType() |
toString, validateInputNotNull
public AbstractTemporalAccessorFormattingProcessor()
public AbstractTemporalAccessorFormattingProcessor(CellProcessor next)
next
- next processor in the chainNullPointerException
- if temporalAccessor or next is nullpublic AbstractTemporalAccessorFormattingProcessor(DateTimeFormatter formatter)
formatter
- the formatter to useNullPointerException
- if temporalAccessor or formatter is nullpublic AbstractTemporalAccessorFormattingProcessor(DateTimeFormatter formatter, CellProcessor next)
formatter
- the formatter to usenext
- the next processor in the chainNullPointerException
- if temporalAccessor, formatter or next is nullpublic Object execute(Object value, CsvContext context)
value
- the value to be processedcontext
- the CSV contextSuperCsvCellProcessorException
- if value is null, not the correct type, or can't be formattedCopyright © 2007–2015 Super CSV. All rights reserved.