How to load a resource bundle from a file resource? - Java Localization

How to load a resource bundle from a file resource?

A property resource bundle can be loaded by using FileInputStream object, sent as a parameter t the PropertyResourceBundle constructor.

The following code snippet illustrates this.
FileInputStream fis = new FileInputStream("File path here");
   try
   {
       return new PropertyResourceBundle(fis);
   }
   finally
   {
       fis.close();
   }
Explain how Java application use multiple locales - Java Localization
Multiple locales can actually be active by a Java application at the same time. A U.S. date format can be used and a German number format within a single / same application...
Post your comment