|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.time.calendar.zone.TZDBZoneRulesCompiler
public final class TZDBZoneRulesCompiler
A builder that can read the TZDB time-zone files and build ZoneRules
instances.
This class is a mutable builder. A new instance must be created for each compile.
Constructor Summary | |
---|---|
TZDBZoneRulesCompiler(java.lang.String version,
java.util.List<java.io.File> sourceFiles,
java.io.File leapSecondsFile,
boolean verbose)
Creates an instance if you want to invoke the compiler manually. |
Method Summary | |
---|---|
void |
compile()
Compile the rules file. |
java.util.SortedMap<LocalDate,java.lang.Byte> |
getLeapSeconds()
Gets the parsed leap seconds. |
java.util.SortedMap<java.lang.String,ZoneRules> |
getZones()
Gets the parsed zone rules. |
static void |
main(java.lang.String[] args)
Reads a set of TZDB files and builds a single combined data file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TZDBZoneRulesCompiler(java.lang.String version, java.util.List<java.io.File> sourceFiles, java.io.File leapSecondsFile, boolean verbose)
version
- the version, such as 2009a, not nullsourceFiles
- the list of source files, not empty, not nullverbose
- whether to output verbose messagesMethod Detail |
---|
public static void main(java.lang.String[] args)
args
- the argumentspublic void compile() throws java.lang.Exception
Use getZones()
and getLeapSeconds()
to retrieve the parsed data.
java.lang.Exception
- if an error occurspublic java.util.SortedMap<java.lang.String,ZoneRules> getZones()
public java.util.SortedMap<LocalDate,java.lang.Byte> getLeapSeconds()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |