Using Java 6 to Access Translatable Text in XML Files

Monday Jun 21st 2010 by Rob Gravelle
Share:

Learn how to use the Java 6 ResourceBundle.Control object in conjunction with the properties class to access XML files.

With Java's properties files and ResourceBundleLists class, you can efficiently manage translatable text in your Java applications. Because the properties files and ResourceBundleLists class are an extensible framework, you also can adapt them to suit your particular needs. Thus, you can easily make your Java code work with translatable text in various formats, such as XML.

The mechanism that allows you to work with your preferred file format(s) in Java 6 is the ResourceBundle.Control object, which you can use in conjunction with the properties class to access XML files with ease. In his WebReference.com article, Rob Gravelle explains how to use the Java 6 ResourceBundle.Control object in conjunction with the properties class to access XML files.


Read the full story at WebReference:
Using Java 6 to Access Translatable Text in XML Files

Share:
Home
Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved