|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.joda.time.tz.ZoneInfoCompiler
public class ZoneInfoCompiler
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.
ZoneInfoCompiler is mutable and not thread-safe, although the main method may be safely invoked by multiple threads.
Constructor Summary | |
---|---|
ZoneInfoCompiler()
|
Method Summary | |
---|---|
Map<String,DateTimeZone> |
compile(File outputDir,
File[] sources)
Returns a map of ids to DateTimeZones. |
static void |
main(String[] args)
Launches the ZoneInfoCompiler tool. |
void |
parseDataFile(BufferedReader in)
|
static boolean |
verbose()
Gets a flag indicating that verbose logging is required. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZoneInfoCompiler()
Method Detail |
---|
public static boolean verbose()
public static void main(String[] args) throws 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)
Exception
public Map<String,DateTimeZone> compile(File outputDir, File[] sources) throws IOException
outputDir
- optional directory to write compiled data files tosources
- optional list of source files to parse
IOException
public void parseDataFile(BufferedReader in) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |