| java.lang.Object org.bouncycastle.i18n.LocalizedMessage
All known Subclasses: org.bouncycastle.i18n.TextBundle, org.bouncycastle.i18n.LocaleString,
LocalizedMessage | public class LocalizedMessage (Code) | | |
Inner Class :protected class FilteredArguments | |
Constructor Summary | |
public | LocalizedMessage(String resource, String id) Constructs a new LocalizedMessage using resource as the base name for the
RessourceBundle and id as the message bundle id the resource file. | public | LocalizedMessage(String resource, String id, String encoding) Constructs a new LocalizedMessage using resource as the base name for the
RessourceBundle and id as the message bundle id the resource file. | public | LocalizedMessage(String resource, String id, Object[] arguments) Constructs a new LocalizedMessage using resource as the base name for the
RessourceBundle and id as the message bundle id the resource file. | public | LocalizedMessage(String resource, String id, String encoding, Object[] arguments) Constructs a new LocalizedMessage using resource as the base name for the
RessourceBundle and id as the message bundle id the resource file. |
DEFAULT_ENCODING | final public static String DEFAULT_ENCODING(Code) | | |
arguments | protected FilteredArguments arguments(Code) | | |
extraArgs | protected FilteredArguments extraArgs(Code) | | |
LocalizedMessage | public LocalizedMessage(String resource, String id) throws NullPointerException(Code) | | Constructs a new LocalizedMessage 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 Parameters: id - the id of the corresponding bundle in the resource file throws: NullPointerException - if resource or id is null |
LocalizedMessage | public LocalizedMessage(String resource, String id, Object[] arguments) throws NullPointerException(Code) | | Constructs a new LocalizedMessage 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 Parameters: id - the id of the corresponding bundle in the resource file Parameters: arguments - an array containing the arguments for the message throws: NullPointerException - if resource or id is null |
LocalizedMessage | public LocalizedMessage(String resource, String id, String encoding, Object[] arguments) throws NullPointerException, UnsupportedEncodingException(Code) | | Constructs a new LocalizedMessage 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 Parameters: id - the id of the corresponding bundle in the resource file Parameters: encoding - the encoding of the resource file Parameters: arguments - an array containing the arguments for the message throws: NullPointerException - if resource or id is null throws: UnsupportedEncodingException - if the encoding is not supported |
getArguments | public Object[] getArguments()(Code) | | Returns an Object[] containing the message arguments.
the message arguments |
getClassLoader | public ClassLoader getClassLoader()(Code) | | Returns the
ClassLoader which loads the resource files or null
if the default ClassLoader is used.
the ClassLoader which loads the resource files |
getEntry | public String getEntry(String key, Locale loc, TimeZone timezone) throws MissingEntryException(Code) | | Reads the entry id + "." + key from the resource file and returns a
formated message for the given Locale and TimeZone.
Parameters: key - second part of the entry id Parameters: loc - the used Locale Parameters: timezone - the used TimeZone a Strng containing the localized message throws: MissingEntryException - if the resource file is not available or the entry does not exist. |
getFilter | public Filter getFilter()(Code) | | Returns the current filter.
the current filter |
getId | public String getId()(Code) | | Returns the id of the message in the resource bundle.
the id of the message |
getResource | public String getResource()(Code) | | Returns the name of the resource bundle for this message
name of the resource file |
setExtraArgument | public void setExtraArgument(Object extraArg)(Code) | | Parameters: extraArg - |
setExtraArguments | public void setExtraArguments(Object[] extraArgs)(Code) | | Parameters: extraArgs - |
setFilter | public void setFilter(Filter filter)(Code) | | Sets the
Filter that is used to filter the arguments of this message
Parameters: filter - the Filter to use. null to disable filtering. |
|
|