Package org.bouncycastle.i18n
Class TextBundle
java.lang.Object
org.bouncycastle.i18n.LocalizedMessage
org.bouncycastle.i18n.TextBundle
- Direct Known Subclasses:
MessageBundle
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bouncycastle.i18n.LocalizedMessage
LocalizedMessage.FilteredArguments -
Field Summary
FieldsFields inherited from class org.bouncycastle.i18n.LocalizedMessage
arguments, DEFAULT_ENCODING, encoding, extraArgs, filter, id, loader, resource -
Constructor Summary
ConstructorsConstructorDescriptionTextBundle(String resource, String id) Constructs a new TextBundle usingresourceas the base name for the RessourceBundle andidas the message bundle id the resource file.TextBundle(String resource, String id, Object[] arguments) Constructs a new TextBundle usingresourceas the base name for the RessourceBundle andidas the message bundle id the resource file.TextBundle(String resource, String id, String encoding) Constructs a new TextBundle usingresourceas the base name for the RessourceBundle andidas the message bundle id the resource file.TextBundle(String resource, String id, String encoding, Object[] arguments) Constructs a new TextBundle usingresourceas the base name for the RessourceBundle andidas the message bundle id the resource file. -
Method Summary
Methods inherited from class org.bouncycastle.i18n.LocalizedMessage
addExtraArgs, formatWithTimeZone, getArguments, getClassLoader, getEntry, getExtraArgs, getFilter, getId, getResource, setClassLoader, setExtraArgument, setExtraArguments, setFilter, toString
-
Field Details
-
TEXT_ENTRY
text entry key- See Also:
-
-
Constructor Details
-
TextBundle
Constructs a new TextBundle usingresourceas the base name for the RessourceBundle andidas 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- ifresourceoridisnull
-
TextBundle
public TextBundle(String resource, String id, String encoding) throws NullPointerException, UnsupportedEncodingException Constructs a new TextBundle usingresourceas the base name for the RessourceBundle andidas 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- ifresourceoridisnullUnsupportedEncodingException- if the encoding is not supported
-
TextBundle
Constructs a new TextBundle usingresourceas the base name for the RessourceBundle andidas 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- ifresourceoridisnull
-
TextBundle
public TextBundle(String resource, String id, String encoding, Object[] arguments) throws NullPointerException, UnsupportedEncodingException Constructs a new TextBundle usingresourceas the base name for the RessourceBundle andidas 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- ifresourceoridisnullUnsupportedEncodingException- if the encoding is not supported
-
-
Method Details
-
getText
Returns the text message in the given locale and timezone.- Parameters:
loc- theLocaletimezone- theTimeZone- Returns:
- the text message.
- Throws:
MissingEntryException- if the message is not available
-
getText
Returns the text message in the given locale and the defaut timezone.- Parameters:
loc- theLocale- Returns:
- the text message.
- Throws:
MissingEntryException- if the message is not available
-