public class MessageBundle extends TextBundle
LocalizedMessage.FilteredArguments| Modifier and Type | Field and Description |
|---|---|
static String |
TITLE_ENTRY
title entry key
|
TEXT_ENTRYarguments, DEFAULT_ENCODING, encoding, extraArgs, filter, id, loader, resource| Constructor and Description |
|---|
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. |
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. |
MessageBundle(String resource,
String id,
String encoding)
Constructs a new MessageBundle using
resource as the base name for the
RessourceBundle and id as the message bundle id the resource file. |
MessageBundle(String resource,
String id,
String encoding,
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. |
| Modifier and Type | Method and Description |
|---|---|
String |
getTitle(Locale loc)
Returns the title message in the given locale and the default timezone.
|
String |
getTitle(Locale loc,
TimeZone timezone)
Returns the title message in the given locale and timezone.
|
getText, getTextaddExtraArgs, formatWithTimeZone, getArguments, getClassLoader, getEntry, getExtraArgs, getFilter, getId, getResource, setClassLoader, setExtraArgument, setExtraArguments, setFilter, toStringpublic static final String TITLE_ENTRY
public MessageBundle(String resource, String id) throws NullPointerException
resource as the base name for the
RessourceBundle and id as the message bundle id the resource file.resource - base name of the resource fileid - the id of the corresponding bundle in the resource fileNullPointerException - if resource or id is nullpublic MessageBundle(String resource, String id, String encoding) throws NullPointerException, UnsupportedEncodingException
resource as the base name for the
RessourceBundle and id as the message bundle id the resource file.resource - base name of the resource fileid - the id of the corresponding bundle in the resource fileencoding - the encoding of the resource fileNullPointerException - if resource or id is nullUnsupportedEncodingException - if the encoding is not supportedpublic MessageBundle(String resource, String id, Object[] arguments) throws NullPointerException
resource as the base name for the
RessourceBundle and id as the message bundle id the resource file.resource - base name of the resource fileid - the id of the corresponding bundle in the resource filearguments - an array containing the arguments for the messageNullPointerException - if resource or id is nullpublic MessageBundle(String resource, String id, String encoding, Object[] arguments) throws NullPointerException, UnsupportedEncodingException
resource as the base name for the
RessourceBundle and id as the message bundle id the resource file.resource - base name of the resource fileid - the id of the corresponding bundle in the resource fileencoding - the encoding of the resource filearguments - an array containing the arguments for the messageNullPointerException - if resource or id is nullUnsupportedEncodingException - if the encoding is not supportedpublic String getTitle(Locale loc, TimeZone timezone) throws MissingEntryException
loc - the Localetimezone - the TimeZoneMissingEntryException - if the message is not availablepublic String getTitle(Locale loc) throws MissingEntryException
loc - the LocaleMissingEntryException - if the message is not availableCopyright © 2015. All rights reserved.