Package org.supercsv.cellprocessor.time
Class FmtZoneId
java.lang.Object
org.supercsv.cellprocessor.CellProcessorAdaptor
org.supercsv.cellprocessor.time.FmtZoneId
- All Implemented Interfaces:
CellProcessor
Converts a ZoneId to a String.
The format is the ID of the timezone, e.g.
('Europe/Vienna'), as defined by
ZoneId.toString()
.- Since:
- 2.4.0
-
Field Summary
FieldsFields inherited from class org.supercsv.cellprocessor.CellProcessorAdaptor
next
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new FmtZoneId processor, which formats a ZoneId as a String.Constructs a new FmtZoneId processor, which formats a ZoneId as String, then calls the next processor in the chain.FmtZoneId
(TextStyle textStyle, Locale locale, CellProcessor next) Constructs a new FmtZoneId processor, which formats a ZoneId as String, then calls the next processor in the chain.FmtZoneId
(CellProcessor next) Constructs a new FmtZoneId processor, which formats a ZoneId as a String, then calls the next processor in the chain. -
Method Summary
Modifier and TypeMethodDescriptionexecute
(Object value, CsvContext context) This method is invoked by the framework when the processor needs to process data or check constraints.Methods inherited from class org.supercsv.cellprocessor.CellProcessorAdaptor
toString, validateInputNotNull
-
Field Details
-
textStyle
-
locale
-
-
Constructor Details
-
FmtZoneId
public FmtZoneId()Constructs a new FmtZoneId processor, which formats a ZoneId as a String. -
FmtZoneId
Constructs a new FmtZoneId processor, which formats a ZoneId as a String, then calls the next processor in the chain.- Parameters:
next
- next processor in the chain- Throws:
NullPointerException
- if next is null
-
FmtZoneId
Constructs a new FmtZoneId processor, which formats a ZoneId as String, then calls the next processor in the chain.- Parameters:
textStyle
- the TextStyle to use for formattinglocale
- the Locale to use for formatting- Throws:
NullPointerException
- if either textStyle or locale is null
-
FmtZoneId
Constructs a new FmtZoneId processor, which formats a ZoneId as String, then calls the next processor in the chain.- Parameters:
textStyle
- the TextStyle to use for formattinglocale
- the Locale to use for formattingnext
- next processor in the chain- Throws:
NullPointerException
- if any argument is null
-
-
Method Details
-
execute
This method is invoked by the framework when the processor needs to process data or check constraints.- Parameters:
value
- the value to be processedcontext
- the CSV context- Returns:
- the result of cell processor execution
- Throws:
SuperCsvCellProcessorException
- if value is null or not a ZoneId
-