public class

MessageBundle

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

Summary

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

Constants

public static final String TITLE_ENTRY

title entry key

Constant Value: "title"

Public Constructors

public MessageBundle (String resource, String id)

Constructs a new MessageBundle 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 MessageBundle (String resource, String id, String encoding)

Constructs a new MessageBundle 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 MessageBundle (String resource, String id, Object[] arguments)

Constructs a new MessageBundle 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 MessageBundle (String resource, String id, String encoding, Object[] arguments)

Constructs a new MessageBundle 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 getTitle (Locale loc)

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

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

public String getTitle (Locale loc, TimeZone timezone)

Returns the title message in the given locale and timezone.

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