FileDocCategorySizeDatePackage
TextBundle.javaAPI DocAndroid 1.5 API2223Wed May 06 22:41:06 BST 2009org.bouncycastle.i18n

TextBundle

public class TextBundle extends LocalizedMessage

Fields Summary
public static final String
TEXT_ENTRY
text entry key
Constructors Summary
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.

param
resource base name of the resource file
param
id the id of the corresponding bundle in the resource file
throws
NullPointerException if resource or id is null

    
                                                               
           
    
        super(resource, id);
    
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.

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

        super(resource, id, arguments);
    
Methods Summary
public java.lang.StringgetText(java.util.Locale loc, java.util.TimeZone timezone)
Returns the text message in the given locale and timezone.

param
loc the {@link Locale}
param
timezone the {@link TimeZone}
return
the text message.
throws
MissingEntryException if the message is not available

        return getEntry(TEXT_ENTRY,loc,timezone);
    
public java.lang.StringgetText(java.util.Locale loc)
Returns the text message in the given locale and the defaut timezone.

param
loc the {@link Locale}
return
the text message.
throws
MissingEntryException if the message is not available

        return getEntry(TEXT_ENTRY,loc,TimeZone.getDefault());