Package net.time4j.tz.repo
Class TimezoneRepositoryProviderSPI
java.lang.Object
net.time4j.tz.repo.TimezoneRepositoryProviderSPI
- All Implemented Interfaces:
net.time4j.scale.LeapSecondProvider,net.time4j.tz.ZoneModelProvider,net.time4j.tz.ZoneNameProvider
public class TimezoneRepositoryProviderSPI
extends Object
implements net.time4j.tz.ZoneModelProvider, net.time4j.tz.ZoneNameProvider, net.time4j.scale.LeapSecondProvider
Reads timezone repository-files compiled by the class
net.time4j.tool.TimezoneRepositoryCompiler (v2.0).
- Since:
- 1.0
- Author:
- Meno Hochschild
-
Constructor Summary
ConstructorsConstructorDescriptionStandard constructor loading the repository. -
Method Summary
Modifier and TypeMethodDescriptionnet.time4j.PlainDategetDateOfEvent(int year, int month, int dayOfMonth)net.time4j.PlainDategetDisplayName(String tzid, net.time4j.tz.NameStyle style, Locale locale)getName()getPreferredIDs(Locale locale, boolean smart)net.time4j.tz.ZoneNameProvidernet.time4j.tz.TransitionHistorybooleantoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.time4j.tz.ZoneNameProvider
getStdFormatPattern
-
Constructor Details
-
TimezoneRepositoryProviderSPI
public TimezoneRepositoryProviderSPI()Standard constructor loading the repository.- Throws:
IllegalStateException- if loading the repository fails
-
-
Method Details
-
getAvailableIDs
- Specified by:
getAvailableIDsin interfacenet.time4j.tz.ZoneModelProvider
-
getPreferredIDs
- Specified by:
getPreferredIDsin interfacenet.time4j.tz.ZoneNameProvider
-
getDisplayName
- Specified by:
getDisplayNamein interfacenet.time4j.tz.ZoneNameProvider
-
getAliases
- Specified by:
getAliasesin interfacenet.time4j.tz.ZoneModelProvider
-
load
- Specified by:
loadin interfacenet.time4j.tz.ZoneModelProvider
-
getFallback
- Specified by:
getFallbackin interfacenet.time4j.tz.ZoneModelProvider
-
getName
- Specified by:
getNamein interfacenet.time4j.tz.ZoneModelProvider
-
getLocation
- Specified by:
getLocationin interfacenet.time4j.tz.ZoneModelProvider
-
getVersion
- Specified by:
getVersionin interfacenet.time4j.tz.ZoneModelProvider
-
getSpecificZoneNameRepository
public net.time4j.tz.ZoneNameProvider getSpecificZoneNameRepository()- Specified by:
getSpecificZoneNameRepositoryin interfacenet.time4j.tz.ZoneModelProvider
-
getLeapSecondTable
- Specified by:
getLeapSecondTablein interfacenet.time4j.scale.LeapSecondProvider
-
supportsNegativeLS
public boolean supportsNegativeLS()- Specified by:
supportsNegativeLSin interfacenet.time4j.scale.LeapSecondProvider
-
getDateOfEvent
public net.time4j.PlainDate getDateOfEvent(int year, int month, int dayOfMonth)- Specified by:
getDateOfEventin interfacenet.time4j.scale.LeapSecondProvider
-
getDateOfExpiration
public net.time4j.PlainDate getDateOfExpiration()- Specified by:
getDateOfExpirationin interfacenet.time4j.scale.LeapSecondProvider
-
toString
-