Top Fields Constructors Methods
org.bouncycastle.i18n

public Class TextBundle

extends LocalizedMessage
Class Inheritance
Known Direct Subclasses
org.bouncycastle.i18n.MessageBundle
Imports
java.io.UnsupportedEncodingException, java.util.Locale, .TimeZone

Field Summary

Modifier and TypeField and Description
public static final String
TEXT_ENTRY

text entry key

Inherited from org.bouncycastle.i18n.LocalizedMessage:
argumentsDEFAULT_ENCODINGencodingextraArgsfilteridloaderresource

Constructor Summary

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

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

public
TextBundle(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 TextBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.

public
TextBundle(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 TextBundle using resource as the base name for the RessourceBundle and id as the message bundle id the resource file.

public
TextBundle(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 TextBundle 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 text message.
getText
(Locale
the Locale
loc
,
TimeZone timezone)

Returns the text message in the given locale and timezone.

public String

Returns:

the text message.
getText
(Locale
the Locale
loc
)

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

Inherited from org.bouncycastle.i18n.LocalizedMessage:
addExtraArgsformatWithTimeZonegetArgumentsgetClassLoadergetEntrygetExtraArgsgetFiltergetIdgetResourcesetClassLoadersetExtraArgumentsetExtraArgumentssetFiltertoString

Field Detail

TEXT_ENTRYback to summary
public static final String TEXT_ENTRY

text entry key

Constructor Detail

TextBundleback to summary
public TextBundle(String resource, String id) throws NullPointerException

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: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
TextBundleback to summary
public TextBundle(String resource, String id, String encoding) throws NullPointerException, UnsupportedEncodingException

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: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
TextBundleback to summary
public TextBundle(String resource, String id, Object[] arguments) throws NullPointerException

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: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
TextBundleback to summary
public TextBundle(String resource, String id, String encoding, Object[] arguments) throws NullPointerException, UnsupportedEncodingException

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: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

getTextback to summary
public String getText(Locale loc, TimeZone timezone) throws MissingEntryException

Returns the text message in the given locale and timezone.

Parameters
loc:Locale

the Locale

timezone:TimeZone

the TimeZone

Returns:String

the text message.

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

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

Parameters
loc:Locale

the Locale

Returns:String

the text message.

Exceptions
MissingEntryException:
if the message is not available