Method | Parameter format | Lookup failure behavior | Usage example |
ClassLoader. | "/"-separated names; no leading "/" (all names are absolute) | Silent (returns null ) | this.getClass(). getClassLoader() |
Class. | "/"-separated names; leading "/" indicates absolute names; all other names are relative to the class's package | Silent (returns null ) | this.getClass() |
ResourceBundle. | "."-separated names; all names are absolute;.properties suffix is implied | Throws uncheckedMissingResourceException | ResourceBundle. getBundle("some.pkg.resource") |
http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html?page=2
No comments:
Post a Comment