Package org.bouncycastle.pkix.util
Class MessageBundle
java.lang.Object
org.bouncycastle.pkix.util.LocalizedMessage
org.bouncycastle.pkix.util.TextBundle
org.bouncycastle.pkix.util.MessageBundle
- Direct Known Subclasses:
ErrorBundle
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bouncycastle.pkix.util.LocalizedMessage
LocalizedMessage.FilteredArguments
-
Field Summary
Fields inherited from class org.bouncycastle.pkix.util.TextBundle
TEXT_ENTRY
Fields inherited from class org.bouncycastle.pkix.util.LocalizedMessage
arguments, DEFAULT_ENCODING, encoding, extraArgs, filter, id, loader, resource
-
Constructor Summary
ConstructorDescriptionMessageBundle
(String resource, String id) Constructs a new MessageBundle usingresource
as the base name for the RessourceBundle andid
as the message bundle id the resource file.MessageBundle
(String resource, String id, Object[] arguments) Constructs a new MessageBundle usingresource
as the base name for the RessourceBundle andid
as the message bundle id the resource file.MessageBundle
(String resource, String id, String encoding) Constructs a new MessageBundle usingresource
as the base name for the RessourceBundle andid
as the message bundle id the resource file.MessageBundle
(String resource, String id, String encoding, Object[] arguments) Constructs a new MessageBundle usingresource
as the base name for the RessourceBundle andid
as the message bundle id the resource file. -
Method Summary
Methods inherited from class org.bouncycastle.pkix.util.TextBundle
getText, getText
Methods inherited from class org.bouncycastle.pkix.util.LocalizedMessage
addExtraArgs, formatWithTimeZone, getArguments, getClassLoader, getEntry, getExtraArgs, getFilter, getId, getResource, setClassLoader, setExtraArgument, setExtraArguments, setFilter, toString
-
Field Details
-
TITLE_ENTRY
title entry key- See Also:
-
-
Constructor Details
-
MessageBundle
Constructs a new MessageBundle usingresource
as the base name for the RessourceBundle andid
as the message bundle id the resource file.- Parameters:
resource
- base name of the resource fileid
- the id of the corresponding bundle in the resource file- Throws:
NullPointerException
- ifresource
orid
isnull
-
MessageBundle
public MessageBundle(String resource, String id, String encoding) throws NullPointerException, UnsupportedEncodingException Constructs a new MessageBundle usingresource
as the base name for the RessourceBundle andid
as the message bundle id the resource file.- Parameters:
resource
- base name of the resource fileid
- the id of the corresponding bundle in the resource fileencoding
- the encoding of the resource file- Throws:
NullPointerException
- ifresource
orid
isnull
UnsupportedEncodingException
- if the encoding is not supported
-
MessageBundle
Constructs a new MessageBundle usingresource
as the base name for the RessourceBundle andid
as the message bundle id the resource file.- Parameters:
resource
- base name of the resource fileid
- the id of the corresponding bundle in the resource filearguments
- an array containing the arguments for the message- Throws:
NullPointerException
- ifresource
orid
isnull
-
MessageBundle
public MessageBundle(String resource, String id, String encoding, Object[] arguments) throws NullPointerException, UnsupportedEncodingException Constructs a new MessageBundle usingresource
as the base name for the RessourceBundle andid
as the message bundle id the resource file.- Parameters:
resource
- base name of the resource fileid
- the id of the corresponding bundle in the resource fileencoding
- the encoding of the resource filearguments
- an array containing the arguments for the message- Throws:
NullPointerException
- ifresource
orid
isnull
UnsupportedEncodingException
- if the encoding is not supported
-
-
Method Details
-
getTitle
Returns the title message in the given locale and timezone.- Parameters:
loc
- theLocale
timezone
- theTimeZone
- Returns:
- the title message.
- Throws:
MissingEntryException
- if the message is not available
-
getTitle
Returns the title message in the given locale and the default timezone.- Parameters:
loc
- theLocale
- Returns:
- the title message.
- Throws:
MissingEntryException
- if the message is not available
-