org.foray.render.awt.viewer
Class SecureResourceBundle
java.lang.Object
java.util.ResourceBundle
org.foray.render.awt.viewer.SecureResourceBundle
- All Implemented Interfaces:
- Translator
public class SecureResourceBundle
- extends ResourceBundle
- implements Translator
Die Klasse SecureResourceBundle
ist ein Resourceundle, das im
Falle eines fehlenden
Eintrages keinen Absturz verursacht, sondern die Meldung
Key key not found zurückgibt.
- Version:
- 1.0 18.03.1999
- Author:
- Stanislav.Gorkhover@jCatalog.com
Methods inherited from class java.util.ResourceBundle |
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecureResourceBundle
public SecureResourceBundle(InputStream in)
throws IOException
- Constructor.
- Parameters:
in
- The input stream containing the unparsed resources.
- Throws:
IOException
- For errors reading in
.
getKeys
public Enumeration<String> getKeys()
- Specified by:
getKeys
in class ResourceBundle
handleGetObject
public Object handleGetObject(String key)
- Specified by:
handleGetObject
in class ResourceBundle
contains
public boolean contains(String key)
- Description copied from interface:
Translator
- Indicates whether a given key exists.
- Specified by:
contains
in interface Translator
- Parameters:
key
- The key which is sought.
- Returns:
- True iff this key exists.
Copyright © 2017. All rights reserved.