Jump to content

Resource (Java)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fasten (talk | contribs) at 15:25, 17 April 2006 (The Java Tutorial Continued: year instead of date, language param not required). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In the Java programming language a resource is a piece of data than can be accessed relative to the code of an application. An application can access its resources through Uniform Resource Locators, like web resources, but the resources are usually contained within the JAR file(s) of the application.

A resource bundle is a set of key and value pairs, stored as a resource, that is commonly used to allow the localization of an application. For this purpose different resource bundles with a common set of keys are used to store translations for the messages and user interface texts of a application.

References

Campione, Mary (2004). "Internationalization". The Java Tutorial Continued (6 print. ed.). Addison-Wesley. ISBN 0201485583. {{cite book}}: External link in |chapterurl= (help); Unknown parameter |accessmonth= ignored (|access-date= suggested) (help); Unknown parameter |accessyear= ignored (|access-date= suggested) (help); Unknown parameter |chapterurl= ignored (|chapter-url= suggested) (help); Unknown parameter |coauthors= ignored (|author= suggested) (help)