| Revision: | 842 | 
| Committed: | Tue Apr 30 00:09:40 2013 UTC (12 years, 6 months ago) by alloc | 
| Content type: | text/x-java | 
| File size: | 425 byte(s) | 
| Log Message: | java: UTF8ResourceBundleLoader: Initial import. | 
| # | Content | 
|---|---|
| 1 | package net.oni2.resourcebundle; | 
| 2 | |
| 3 | import java.util.ResourceBundle; | 
| 4 | |
| 5 | /** | 
| 6 | * @author Christian Illy | 
| 7 | */ | 
| 8 | public class UTF8ResourceBundleLoader { | 
| 9 | |
| 10 | private static ResourceBundleControl control = new ResourceBundleControl(); | 
| 11 | |
| 12 | /** | 
| 13 | * @param name | 
| 14 | * Name of properties file | 
| 15 | * @return Resource bundle | 
| 16 | */ | 
| 17 | public static ResourceBundle getBundle(String name) { | 
| 18 | return ResourceBundle.getBundle(name, control); | 
| 19 | } | 
| 20 | |
| 21 | } |