Class TZDBZoneRulesCompiler

java.lang.Object
javax.time.calendar.zone.TZDBZoneRulesCompiler

public final class TZDBZoneRulesCompiler extends Object
A builder that can read the TZDB TimeZone files and build ZoneRules instances.

TZDBZoneRulesCompiler is thread-safe.

Author:
Stephen Colebourne
  • Constructor Details

    • TZDBZoneRulesCompiler

      public TZDBZoneRulesCompiler(String version, List<File> sourceFiles, boolean verbose)
      Constructor used if you want to invoke the compiler manually.
      Parameters:
      version - the version, such as 2009a, not null
      sourceFiles - the list of source files, not empty, not null
      verbose - whether to output verbose messages
  • Method Details

    • main

      public static void main(String[] args)
      Reads a set of TZDB files and builds a single combined data file.
      Parameters:
      args - the arguments
    • compile

      public SortedMap<String, ZoneRules> compile() throws Exception
      Compile the rules file.
      Returns:
      the map of region ID to rules, not null
      Throws:
      Exception - if an error occurs