org.foray.render.awt.viewer
Class SecureResourceBundle

java.lang.Object
  extended by java.util.ResourceBundle
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control
 
Field Summary
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
SecureResourceBundle(InputStream in)
          Constructor.
 
Method Summary
 boolean contains(String key)
          Indicates whether a given key exists.
 Enumeration<String> getKeys()
           
 Object handleGetObject(String key)
           
 
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
 
Methods inherited from interface org.foray.render.awt.viewer.Translator
getString
 

Constructor Detail

SecureResourceBundle

public SecureResourceBundle(InputStream in)
                     throws IOException
Constructor.

Parameters:
in - The input stream containing the unparsed resources.
Throws:
IOException - For errors reading in.
Method Detail

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.