Joda Time API

org.joda.time.tz
Class ZoneInfoCompiler

java.lang.Object
  |
  +--org.joda.time.tz.ZoneInfoCompiler

public class ZoneInfoCompiler
extends java.lang.Object

Compiles Olson ZoneInfo database files into binary files for each time zone in the database. DateTimeZoneBuilder is used to construct and encode compiled data files. ZoneInfoProvider loads the encoded files and converts them back into DateTimeZone objects.

Although this tool is similar to zic, the binary formats are not compatible. The latest Olson database files may be obtained here.

Author:
Brian S O'Neill

Constructor Summary
ZoneInfoCompiler()
           
 
Method Summary
 java.util.Map compile(java.lang.String outputDir, java.lang.String[] sources)
          Returns a map of ids to DateTimeZones.
static void main(java.lang.String[] args)
          Usage: java ZoneInfoCompiler [-d outputDirectory] sourceFile ...
 void parseDataFile(java.io.BufferedReader in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZoneInfoCompiler

public ZoneInfoCompiler()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Usage: java ZoneInfoCompiler [-d outputDirectory] sourceFile ...

java.lang.Exception

compile

public java.util.Map compile(java.lang.String outputDir,
                             java.lang.String[] sources)
                      throws java.io.IOException
Returns a map of ids to DateTimeZones.

Parameters:
outputDir - optional directory to write compiled data files to
sources - optional list of source file paths to parse
java.io.IOException

parseDataFile

public void parseDataFile(java.io.BufferedReader in)
                   throws java.io.IOException
java.io.IOException

Joda Time API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.