Top Fields Constructors Methods
org.bouncycastle.pkix.util

public Class ErrorBundle

extends MessageBundle
Class Inheritance
Imports
java.io.UnsupportedEncodingException, java.util.Locale, .TimeZone

Field Summary

Modifier and TypeField and Description
public static final String
DETAIL_ENTRY

detail entry key

public static final String
SUMMARY_ENTRY

summary entry key

Inherited from org.bouncycastle.pkix.util.MessageBundle:
TITLE_ENTRY

Constructor Summary

AccessConstructor and Description
public
ErrorBundle(String
base name of the resource file
resource
,
String
the id of the corresponding bundle in the resource file
id
)

Constructs a new ErrorBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.

public
ErrorBundle(String
base name of the resource file
resource
,
String
the id of the corresponding bundle in the resource file
id
,
String
the encoding of the resource file
encoding
)

Constructs a new ErrorBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.

public
ErrorBundle(String
base name of the resource file
resource
,
String
the id of the corresponding bundle in the resource file
id
,
Object[]
an array containing the arguments for the message
arguments
)

Constructs a new ErrorBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.

public
ErrorBundle(String
base name of the resource file
resource
,
String
the id of the corresponding bundle in the resource file
id
,
String
the encoding of the resource file
encoding
,
Object[]
an array containing the arguments for the message
arguments
)

Constructs a new ErrorBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the detail message.
getDetail
(Locale
the Locale
loc
,
TimeZone timezone)

Returns the detail message in the given locale and timezone.

public String

Returns:

the detail message.
getDetail
(Locale
the Locale
loc
)

Returns the detail message in the given locale and the default timezone.

public String

Returns:

the summary message.
getSummary
(Locale
the Locale
loc
,
TimeZone timezone)

Returns the summary message in the given locale and timezone.

public String

Returns:

the summary message.
getSummary
(Locale
the Locale
loc
)

Returns the summary message in the given locale and the default timezone.

Inherited from org.bouncycastle.pkix.util.MessageBundle:
getTitlegetTitle

Field Detail

DETAIL_ENTRYback to summary
public static final String DETAIL_ENTRY

detail entry key

SUMMARY_ENTRYback to summary
public static final String SUMMARY_ENTRY

summary entry key

Constructor Detail

ErrorBundleback to summary
public ErrorBundle(String resource, String id) throws NullPointerException

Constructs a new ErrorBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.

Parameters
resource:String

base name of the resource file

id:String

the id of the corresponding bundle in the resource file

Exceptions
NullPointerException:
if resource or id is null
ErrorBundleback to summary
public ErrorBundle(String resource, String id, String encoding) throws NullPointerException, UnsupportedEncodingException

Constructs a new ErrorBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.

Parameters
resource:String

base name of the resource file

id:String

the id of the corresponding bundle in the resource file

encoding:String

the encoding of the resource file

Exceptions
NullPointerException:
if resource or id is null
UnsupportedEncodingException:
if the encoding is not supported
ErrorBundleback to summary
public ErrorBundle(String resource, String id, Object[] arguments) throws NullPointerException

Constructs a new ErrorBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.

Parameters
resource:String

base name of the resource file

id:String

the id of the corresponding bundle in the resource file

arguments:Object[]

an array containing the arguments for the message

Exceptions
NullPointerException:
if resource or id is null
ErrorBundleback to summary
public ErrorBundle(String resource, String id, String encoding, Object[] arguments) throws NullPointerException, UnsupportedEncodingException

Constructs a new ErrorBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.

Parameters
resource:String

base name of the resource file

id:String

the id of the corresponding bundle in the resource file

encoding:String

the encoding of the resource file

arguments:Object[]

an array containing the arguments for the message

Exceptions
NullPointerException:
if resource or id is null
UnsupportedEncodingException:
if the encoding is not supported

Method Detail

getDetailback to summary
public String getDetail(Locale loc, TimeZone timezone) throws MissingEntryException

Returns the detail message in the given locale and timezone.

Parameters
loc:Locale

the Locale

timezone:TimeZone

the TimeZone

Returns:String

the detail message.

Exceptions
MissingEntryException:
if the message is not available
getDetailback to summary
public String getDetail(Locale loc) throws MissingEntryException

Returns the detail message in the given locale and the default timezone.

Parameters
loc:Locale

the Locale

Returns:String

the detail message.

Exceptions
MissingEntryException:
if the message is not available
getSummaryback to summary
public String getSummary(Locale loc, TimeZone timezone) throws MissingEntryException

Returns the summary message in the given locale and timezone.

Parameters
loc:Locale

the Locale

timezone:TimeZone

the TimeZone

Returns:String

the summary message.

Exceptions
MissingEntryException:
if the message is not available
getSummaryback to summary
public String getSummary(Locale loc) throws MissingEntryException

Returns the summary message in the given locale and the default timezone.

Parameters
loc:Locale

the Locale

Returns:String

the summary message.

Exceptions
MissingEntryException:
if the message is not available