Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class LocaleUtil

extends Object
Class Inheritance
Imports
java.text.ParseException, .SimpleDateFormat, java.util.Date, .HashMap, .Locale, .Map, org.bouncycastle.util.Longs

ASN.1 uses an EN locale for its internal formatting. This class finds the nearest equivalent in the current JVM to ensure date formats are always respected.

Field Summary

Modifier and TypeField and Description
public static Locale
private static final Map<K, V>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static Date
private static Locale
private static Long
longValueOf(long v)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EN_Localeback to summary
public static Locale EN_Locale
localeCacheback to summary
private static final Map<K, V> localeCache

Constructor Detail

LocaleUtilback to summary
public LocaleUtil()

Method Detail

epochAdjustback to summary
pack-priv static Date epochAdjust(Date date) throws ParseException
forENback to summary
private static Locale forEN()
longValueOfback to summary
private static Long longValueOf(long v)