public class

TextBundle

extends LocalizedMessage
java.lang.Object
   ↳ org.bouncycastle.i18n.LocalizedMessage
     ↳ org.bouncycastle.i18n.TextBundle
Known Direct Subclasses
Known Indirect Subclasses

Summary

Constants
String TEXT_ENTRY text entry key
[Expand]
Inherited Constants
From class org.bouncycastle.i18n.LocalizedMessage
[Expand]
Inherited Fields
From class org.bouncycastle.i18n.LocalizedMessage
Public Constructors
TextBundle(String resource, String id)
Constructs a new TextBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.
TextBundle(String resource, String id, String encoding)
Constructs a new TextBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.
TextBundle(String resource, String id, Object[] arguments)
Constructs a new TextBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.
TextBundle(String resource, String id, String encoding, Object[] arguments)
Constructs a new TextBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.
Public Methods
String getText(Locale loc)
Returns the text message in the given locale and the defaut timezone.
String getText(Locale loc, TimeZone timezone)
Returns the text message in the given locale and timezone.
[Expand]
Inherited Methods
From class org.bouncycastle.i18n.LocalizedMessage
From class java.lang.Object

Constants

public static final String TEXT_ENTRY

text entry key

Constant Value: "text"

Public Constructors

public TextBundle (String resource, String id)

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

Parameters
resource base name of the resource file
id the id of the corresponding bundle in the resource file
Throws
NullPointerException if resource or id is null

public TextBundle (String resource, String id, String encoding)

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

Parameters
resource base name of the resource file
id the id of the corresponding bundle in the resource file
encoding the encoding of the resource file
Throws
NullPointerException if resource or id is null
UnsupportedEncodingException if the encoding is not supported

public TextBundle (String resource, String id, Object[] arguments)

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

Parameters
resource base name of the resource file
id the id of the corresponding bundle in the resource file
arguments an array containing the arguments for the message
Throws
NullPointerException if resource or id is null

public TextBundle (String resource, String id, String encoding, Object[] arguments)

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

Parameters
resource base name of the resource file
id the id of the corresponding bundle in the resource file
encoding the encoding of the resource file
arguments an array containing the arguments for the message
Throws
NullPointerException if resource or id is null
UnsupportedEncodingException if the encoding is not supported

Public Methods

public String getText (Locale loc)

Returns the text message in the given locale and the defaut timezone.

Parameters
loc the Locale
Returns
  • the text message.
Throws
MissingEntryException if the message is not available

public String getText (Locale loc, TimeZone timezone)

Returns the text message in the given locale and timezone.

Parameters
loc the Locale
timezone the TimeZone
Returns
  • the text message.
Throws
MissingEntryException if the message is not available