public class ZoneInfoCompiler extends java.lang.Object
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.
ZoneInfoCompiler is mutable and not thread-safe, although the main method may be safely invoked by multiple threads.
Constructor and Description |
---|
ZoneInfoCompiler() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,DateTimeZone> |
compile(java.io.File outputDir,
java.io.File[] sources)
Returns a map of ids to DateTimeZones.
|
static void |
main(java.lang.String[] args)
Launches the ZoneInfoCompiler tool.
|
void |
parseDataFile(java.io.BufferedReader in) |
static boolean |
verbose()
Gets a flag indicating that verbose logging is required.
|
public ZoneInfoCompiler()
public static boolean verbose()
public static void main(java.lang.String[] args) throws java.lang.Exception
Usage: java org.joda.time.tz.ZoneInfoCompiler <options> <source files> where possible options include: -src <directory> Specify where to read source files -dst <directory> Specify where to write generated files -verbose Output verbosely (default false)
java.lang.Exception
public java.util.Map<java.lang.String,DateTimeZone> compile(java.io.File outputDir, java.io.File[] sources) throws java.io.IOException
outputDir
- optional directory to write compiled data files tosources
- optional list of source files to parsejava.io.IOException
public void parseDataFile(java.io.BufferedReader in) throws java.io.IOException
java.io.IOException
Copyright © 2002-2013 Joda.org. All Rights Reserved.