FileDocCategorySizeDatePackage
ErrorBundle.javaAPI DocAndroid 1.5 API3173Wed May 06 22:41:06 BST 2009org.bouncycastle.i18n

ErrorBundle

public class ErrorBundle extends MessageBundle

Fields Summary
public static final String
SUMMARY_ENTRY
summary entry key
public static final String
DETAIL_ENTRY
detail entry key
Constructors Summary
public ErrorBundle(String resource, String id)
Constructs a new ErrorBundle 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 ErrorBundle(String resource, String id, Object[] arguments)
Constructs a new ErrorBundle 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.StringgetDetail(java.util.Locale loc, java.util.TimeZone timezone)
Returns the detail message in the given locale and timezone.

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

        return getEntry(DETAIL_ENTRY,loc,timezone);
    
public java.lang.StringgetDetail(java.util.Locale loc)
Returns the detail message in the given locale and the default timezone.

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

        return getEntry(DETAIL_ENTRY,loc,TimeZone.getDefault());
    
public java.lang.StringgetSummary(java.util.Locale loc, java.util.TimeZone timezone)
Returns the summary message in the given locale and timezone.

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

        return getEntry(SUMMARY_ENTRY,loc,timezone);
    
public java.lang.StringgetSummary(java.util.Locale loc)
Returns the summary message in the given locale and the default timezone.

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

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