FileDocCategorySizeDatePackage
TimezoneGetter.javaAPI DocAndroid 1.5 API1653Wed May 06 22:41:04 BST 2009org.apache.harmony.luni.internal.util

TimezoneGetter

public abstract class TimezoneGetter extends Object
This class provides a way to add an implementation specific way to access the current timezone.

Fields Summary
private static TimezoneGetter
instance
Constructors Summary
Methods Summary
public abstract java.lang.StringgetId()
Retrieves the ID of the current time zone.

return
String the ID of the current time zone.

public static org.apache.harmony.luni.internal.util.TimezoneGettergetInstance()
Retrieves the singleton instance of this class.

return
TimezoneGetter the single instance of this class.

        return instance;
    
public static voidsetInstance(org.apache.harmony.luni.internal.util.TimezoneGetter getter)
Sets the singleton instance of this class.

param
instance TimezoneGetter the single instance of this class.

        if (instance != null) {
            throw new UnsupportedOperationException("TimezoneGetter instance already set");
        }
        instance = getter;