| org.geotools.resources.ResourceBundle org.geotools.resources.IndexedResourceBundle org.geotools.resources.ResourceBundle
All known Subclasses: org.geotools.resources.i18n.Vocabulary, org.geotools.resources.IndexedResourceBundle, org.geotools.resources.i18n.Logging, org.geotools.resources.i18n.Descriptions, org.geotools.resources.i18n.Errors,
ResourceBundle | public class ResourceBundle extends IndexedResourceBundle (Code) | | {link java.util.ResourceBundle} implementation using integers instead of strings for resource
keys. Because it doesn't use strings, this implementation avoids adding all those string
constants to
.class files and runtime images. Developers still have meaningful labels
in their code (e.g.
DIMENSION_MISMATCH ) through a set of constants defined in interfaces.
This approach furthermore gives the benefit of compile-time safety. Because integer constants are
inlined right into class files at compile time, the declarative interface is never loaded at run
time. This class also provides facilities for string formatting using
MessageFormat .
since: 2.0 version: $Id: ResourceBundle.java 26165 2007-07-06 17:02:26Z desruisseaux $ author: Martin DesruisseauxIndexedResourceBundle |
ResourceBundle | protected ResourceBundle()(Code) | | Constructs a new resource bundle. The resource filename will be inferred
from the fully qualified classname of this
ResourceBundle subclass.
since: 2.2 |
ResourceBundle | protected ResourceBundle(String filename)(Code) | | Constructs a new resource bundle.
Parameters: filename - The resource name containing resources.It may be a filename or an entry in a JAR file. |
Methods inherited from org.geotools.resources.IndexedResourceBundle | public static String format(LogRecord record)(Code)(Java Doc) final public Enumeration getKeys()(Code)(Java Doc) final public String getLabel(int key) throws MissingResourceException(Code)(Java Doc) public LogRecord getLogRecord(Level level, int key)(Code)(Java Doc) public LogRecord getLogRecord(Level level, int key, Object arg0)(Code)(Java Doc) public LogRecord getLogRecord(Level level, int key, Object arg0, Object arg1)(Code)(Java Doc) public LogRecord getLogRecord(Level level, int key, Object arg0, Object arg1, Object arg2)(Code)(Java Doc) public LogRecord getLogRecord(Level level, int key, Object arg0, Object arg1, Object arg2, Object arg3)(Code)(Java Doc) final public String getMenuLabel(int key) throws MissingResourceException(Code)(Java Doc) final public String getString(int key) throws MissingResourceException(Code)(Java Doc) final public String getString(int key, Object arg0) throws MissingResourceException(Code)(Java Doc) final public String getString(int key, Object arg0, Object arg1) throws MissingResourceException(Code)(Java Doc) final public String getString(int key, Object arg0, Object arg1, Object arg2) throws MissingResourceException(Code)(Java Doc) final public String getString(int key, Object arg0, Object arg1, Object arg2, Object arg3) throws MissingResourceException(Code)(Java Doc) final public String getString(int key, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4) throws MissingResourceException(Code)(Java Doc) final protected Object handleGetObject(String key)(Code)(Java Doc) final public void list(Writer out) throws IOException(Code)(Java Doc) public synchronized String toString()(Code)(Java Doc)
|
|
|