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 Details

    • TimezoneRepositoryProviderSPI

      public TimezoneRepositoryProviderSPI()
      Standard constructor loading the repository.
      Throws:
      IllegalStateException - if loading the repository fails
  • Method Details

    • getAvailableIDs

      public Set<String> getAvailableIDs()
      Specified by:
      getAvailableIDs in interface net.time4j.tz.ZoneModelProvider
    • getPreferredIDs

      public Set<String> getPreferredIDs(Locale locale, boolean smart)
      Specified by:
      getPreferredIDs in interface net.time4j.tz.ZoneNameProvider
    • getDisplayName

      public String getDisplayName(String tzid, net.time4j.tz.NameStyle style, Locale locale)
      Specified by:
      getDisplayName in interface net.time4j.tz.ZoneNameProvider
    • getAliases

      public Map<String,​String> getAliases()
      Specified by:
      getAliases in interface net.time4j.tz.ZoneModelProvider
    • load

      public net.time4j.tz.TransitionHistory load(String zoneID)
      Specified by:
      load in interface net.time4j.tz.ZoneModelProvider
    • getFallback

      public String getFallback()
      Specified by:
      getFallback in interface net.time4j.tz.ZoneModelProvider
    • getName

      public String getName()
      Specified by:
      getName in interface net.time4j.tz.ZoneModelProvider
    • getLocation

      public String getLocation()
      Specified by:
      getLocation in interface net.time4j.tz.ZoneModelProvider
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface net.time4j.tz.ZoneModelProvider
    • getSpecificZoneNameRepository

      public net.time4j.tz.ZoneNameProvider getSpecificZoneNameRepository()
      Specified by:
      getSpecificZoneNameRepository in interface net.time4j.tz.ZoneModelProvider
    • getLeapSecondTable

      public Map<net.time4j.base.GregorianDate,​Integer> getLeapSecondTable()
      Specified by:
      getLeapSecondTable in interface net.time4j.scale.LeapSecondProvider
    • supportsNegativeLS

      public boolean supportsNegativeLS()
      Specified by:
      supportsNegativeLS in interface net.time4j.scale.LeapSecondProvider
    • getDateOfEvent

      public net.time4j.PlainDate getDateOfEvent(int year, int month, int dayOfMonth)
      Specified by:
      getDateOfEvent in interface net.time4j.scale.LeapSecondProvider
    • getDateOfExpiration

      public net.time4j.PlainDate getDateOfExpiration()
      Specified by:
      getDateOfExpiration in interface net.time4j.scale.LeapSecondProvider
    • toString

      public String toString()
      Overrides:
      toString in class Object