FileDocCategorySizeDatePackage
MessageBundle.javaAPI DocAndroid 1.5 API2240Wed May 06 22:41:06 BST 2009org.bouncycastle.i18n

MessageBundle

public class MessageBundle extends TextBundle

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

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

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.StringgetTitle(java.util.Locale loc, java.util.TimeZone timezone)
Returns the title message in the given locale and timezone.

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

        return getEntry(TITLE_ENTRY,loc,timezone);
    
public java.lang.StringgetTitle(java.util.Locale loc)
Returns the title message in the given locale and the default timezone.

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

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