(String name, ClassLoader loader,
ResourceBundle parent)
| 28 | } |
| 29 | |
| 30 | private static ResourceBundle findProperties(String name, ClassLoader loader, |
| 31 | ResourceBundle parent) |
| 32 | throws IOException |
| 33 | { |
| 34 | InputStream in = loader.getResourceAsStream |
| 35 | (replace('.', '/', name) + ".properties"); |
| 36 | if (in != null) { |
| 37 | try { |
| 38 | ResourceBundle r = new PropertyResourceBundle(in); |
| 39 | r.name = name; |
| 40 | r.parent = parent; |
| 41 | return r; |
| 42 | } finally { |
| 43 | in.close(); |
| 44 | } |
| 45 | } else { |
| 46 | return null; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | private static ResourceBundle find(String name, ClassLoader loader, |
| 51 | ResourceBundle parent) |
no test coverage detected