Class ParseZoneId

java.lang.Object
org.supercsv.cellprocessor.CellProcessorAdaptor
org.supercsv.cellprocessor.time.ParseZoneId
All Implemented Interfaces:
CellProcessor

public class ParseZoneId extends CellProcessorAdaptor
Converts a String to a ZoneId.
Since:
2.4.0
  • Field Details

  • Constructor Details

    • ParseZoneId

      public ParseZoneId()
      Constructs a new ParseZoneId processor, which parses a String recognized by ZoneId.of(String) as a ZoneId.
    • ParseZoneId

      public ParseZoneId(CellProcessor next)
      Constructs a new ParseZoneId processor, which parses a String as a ZoneId, then calls the next processor in the chain.
      Parameters:
      next - the next processor in the chain
      See Also:
    • ParseZoneId

      public ParseZoneId(Map<String,String> aliasMap)
      Constructs a new ParseZoneId processor, which parses a String as a ZoneId using the supplied Zone ID mappings.
      Parameters:
      aliasMap - a Map from custom zone IDs to canonical representations
      See Also:
    • ParseZoneId

      public ParseZoneId(Map<String,String> aliasMap, CellProcessor next)
      Constructs a new ParseZoneId processor, which parses a String as a ZoneId using the supplied Zone ID mappings, then calls the next processor in the chain.
      Parameters:
      aliasMap - a Map from custom zone IDs to canonical representations
      next - the next processor in the chain
      See Also:
  • Method Details

    • execute

      public Object execute(Object value, CsvContext context)
      This method is invoked by the framework when the processor needs to process data or check constraints.
      Parameters:
      value - the value to be processed
      context - the CSV context
      Returns:
      the result of cell processor execution
      Throws:
      SuperCsvCellProcessorException - if value is null or is not a String