1 7 8 10 package org.jboss.net; 11 12 18 19 public class DefaultResourceBundle extends java.util.ResourceBundle 20 { 21 22 23 static class EmptyEnumeration implements java.util.Enumeration 24 { 25 public boolean hasMoreElements() 26 { 27 return false; 28 } 29 30 public Object nextElement() throws java.util.NoSuchElementException 31 { 32 throw new java.util.NoSuchElementException (); 33 } 34 } 35 36 37 static java.util.Enumeration EMPTY_ENUMERATION = new EmptyEnumeration(); 38 39 40 public DefaultResourceBundle() 41 { 42 } 43 44 45 public java.util.Enumeration getKeys() 46 { 47 return EMPTY_ENUMERATION; 48 } 49 50 51 protected java.lang.Object handleGetObject(java.lang.String str) throws java.util.MissingResourceException 52 { 53 return str; 54 } 55 56 } 57 | Popular Tags |