/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Utility class that deals with the localized time zone names
*/
public final class TimeZoneNameUtility {
/**
* cache to hold time zone resource bundles. Keyed by Locale
*/
/**
* cache to hold time zone localized strings. Keyed by Locale
*/
/**
* get time zone localized strings. Enumerate all keys.
*/
}
return zones;
}
while(keys.hasMoreElements()) {
}
}
}
/**
* Retrieve display names for a time zone ID.
*/
}
// Check whether a provider can provide an implementation that's closer
// to the requested locale than what the Java runtime itself can provide.
if (pool.hasProviders()) {
}
try {
} catch (MissingResourceException mre) {
// fall through
}
}
return names;
}
}
return rb;
}
/**
* Obtains a localized time zone strings from a TimeZoneNameProvider
* implementation.
*/
private static class TimeZoneNameGetter
String[]>{
new TimeZoneNameGetter();
} else {
// Check whether this id is an alias, if so,
// look for the standard id.
}
}
// There may be a case that a standard id has become an
// alias. so, check the aliases backward.
}
}
}
}
return names;
}
return names;
} else {
return names;
}
}
}
}
}
return null;
}
for (int i = 1; i <= 4; i ++) {
}
}
// this id seems not localized by this provider
}
return names;
}
}
}