Package org.supercsv.cellprocessor.time
Class FmtZonedDateTime
java.lang.Object
org.supercsv.cellprocessor.CellProcessorAdaptor
org.supercsv.cellprocessor.time.AbstractTemporalAccessorFormattingProcessor<ZonedDateTime>
org.supercsv.cellprocessor.time.FmtZonedDateTime
- All Implemented Interfaces:
CellProcessor
Converts a ZonedDateTime to a String.
For constructors using DateTimeFormatter, refer to the following
classes:
DateTimeFormatter
- formats by pattern and styleDateTimeFormatterBuilder
- complex formats created via method calls
- Since:
- 2.4.0
-
Field Summary
Fields inherited from class org.supercsv.cellprocessor.CellProcessorAdaptor
next
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new FmtZonedDateTime processor, which formats a ZonedDateTime as a String.FmtZonedDateTime
(DateTimeFormatter formatter) Constructs a new FmtZonedDateTime processor, which formats a ZonedDateTime as a String using the supplied formatter.FmtZonedDateTime
(DateTimeFormatter formatter, CellProcessor next) Constructs a new FmtZonedDateTime processor, which formats a ZonedDateTime as a String using the supplied formatter, then calls the next processor in the chain.Constructs a new FmtZonedDateTime processor, which formats a ZonedDateTime as a String, then calls the next processor in the chain. -
Method Summary
Methods inherited from class org.supercsv.cellprocessor.time.AbstractTemporalAccessorFormattingProcessor
execute
Methods inherited from class org.supercsv.cellprocessor.CellProcessorAdaptor
toString, validateInputNotNull
-
Constructor Details
-
FmtZonedDateTime
public FmtZonedDateTime()Constructs a new FmtZonedDateTime processor, which formats a ZonedDateTime as a String. -
FmtZonedDateTime
Constructs a new FmtZonedDateTime processor, which formats a ZonedDateTime as a String, then calls the next processor in the chain.- Parameters:
next
- next processor in the chain- Throws:
NullPointerException
- if next is null
-
FmtZonedDateTime
Constructs a new FmtZonedDateTime processor, which formats a ZonedDateTime as a String using the supplied formatter.- Parameters:
formatter
- the formatter to use- Throws:
NullPointerException
- if formatter is null
-
FmtZonedDateTime
Constructs a new FmtZonedDateTime processor, which formats a ZonedDateTime as a String using the supplied formatter, then calls the next processor in the chain.- Parameters:
formatter
- the formatter to usenext
- the next processor in the chain- Throws:
NullPointerException
- if formatter or next is null
-
-
Method Details
-
getType
- Specified by:
getType
in classAbstractTemporalAccessorFormattingProcessor<ZonedDateTime>
- Returns:
- the type formatted by this subclass
-