Contents - Cultural View

Contents - Cultural View Contents - Cultural View

culturalview.com
from culturalview.com More from this publisher
14.07.2013 Views

Java Development Kit 162 See also • Classpath (Java) • Java platform • Java version history External links • Sun Java SE [7] – Sun's current stable release (6). • IBM Java technology JDK [8] • Oracle's JRockit JDK [5] • Open source JDK 7 project [22] • Open source JDK project [9] • Community support [10] • GNU Classpath [11] – a Free software JDK alternative • Apache Harmony [38] – an Open source JDK alternative • Javadoc Developer Kit (JDK) Search Engine [12] • Developer Support Services from Sun Microsystems [13] References [1] "Java SE Downloads - Sun Developer Network (SDN)" (http:/ / java. sun. com/ javase/ downloads/ widget/ jdk6. jsp). . [2] http:/ / dlc. sun. com. edgesuite. net/ jdk7/ binaries/ index. html [3] "Sun's May 8th announcement of source code for JDK" (http:/ / www. prnewswire. com/ cgi-bin/ stories. pl?ACCT=104& STORY=/ www/ story/ 05-08-2007/ 0004583482). . [4] http:/ / www-128. ibm. com/ developerworks/ java/ jdk/ [5] http:/ / www. oracle. com/ appserver/ jrockit/ index. html [6] http:/ / docs. info. apple. com/ article. html?artnum=120209 [7] http:/ / java. sun. com/ javase/ [8] http:/ / www. ibm. com/ developerworks/ java/ jdk/ [9] http:/ / openjdk. java. net/ [10] http:/ / community. java. net/ jdk/ [11] http:/ / www. gnu. org/ software/ classpath/ [12] http:/ / javadoc. ankerl. com/ [13] http:/ / www. sun. com/ service/ developer/ index. jsp

Java Interface Definition Language 163 Java Interface Definition Language In software development, Java Interface Definition Language, or Java IDL, is an implementation of the CORBA specification and enables interoperability and connectivity with heterogeneous objects. It is basically an Object Request Broker provided with JDK. The Java IDL enables distributed Web applications to transparently invoke operations on remote network services using the industry standards IDL and IIOP from OMG. External links • Sun Developer Network: Core Java: Java IDL [1] References [1] http:/ / java. sun. com/ products/ jdk/ idl/ Java resource bundle A resource bundle is a Java .properties file that contains locale-specific data [1] . It is a way of internationalising a Java application by making the code locale-independent. Naming a resource bundle Resource bundles have a naming convention to identify them when they deal with different languages. The file name is followed by an underscore and a two-letter language code (ISO 639-2 code) that specifies the language that the resource bundle deals with. So, for example, an application that supports Spanish and French can have these resource bundles, respectively: resbund_es.properties resbund_fr.properties This can also be followed by another underscore and a two-letter country code (ISO 3166-1). In this case, an application that supports British English and US English respectively will have the following files: resbund_en_GB.properties resbund_en_US.properties Content of a resource bundle Resource bundles are essentially text files. The most common type of content in a resource bundle is a list of strings. Each string has a “key” to identify it, which is the same in all the different resource bundles. When writing the code for the application, only the key is mentioned (this is why we say that the code is locale-independent). Using the methods provided in the Java API for the ResourceBundle class [2] , we can access the string (i.e. the "value") associated with the key. Depending on which locale the application is handling, it will call the adequate resource bundle at runtime [3] . For instance, our resource bundle for the UK English locale can contain “firstKey = Localisation” and our US English one can contain “firstKey = Localization”. We will refer only to “firstKey” in the code and, according to the current locale settings, the application will use either “Localization” or “Localisation”.

Java Interface Definition Language 163<br />

Java Interface Definition Language<br />

In software development, Java Interface Definition Language, or Java IDL, is an implementation of the CORBA<br />

specification and enables interoperability and connectivity with heterogeneous objects. It is basically an Object<br />

Request Broker provided with JDK. The Java IDL enables distributed Web applications to transparently invoke<br />

operations on remote network services using the industry standards IDL and IIOP from OMG.<br />

External links<br />

• Sun Developer Network: Core Java: Java IDL [1]<br />

References<br />

[1] http:/ / java. sun. com/ products/ jdk/ idl/<br />

Java resource bundle<br />

A resource bundle is a Java .properties file that contains locale-specific data [1] . It is a way of internationalising a<br />

Java application by making the code locale-independent.<br />

Naming a resource bundle<br />

Resource bundles have a naming convention to identify them when they deal with different languages. The file name<br />

is followed by an underscore and a two-letter language code (ISO 639-2 code) that specifies the language that the<br />

resource bundle deals with. So, for example, an application that supports Spanish and French can have these resource<br />

bundles, respectively:<br />

resbund_es.properties<br />

resbund_fr.properties<br />

This can also be followed by another underscore and a two-letter country code (ISO 3166-1). In this case, an<br />

application that supports British English and US English respectively will have the following files:<br />

resbund_en_GB.properties<br />

resbund_en_US.properties<br />

Content of a resource bundle<br />

Resource bundles are essentially text files. The most common type of content in a resource bundle is a list of strings.<br />

Each string has a “key” to identify it, which is the same in all the different resource bundles. When writing the code<br />

for the application, only the key is mentioned (this is why we say that the code is locale-independent). Using the<br />

methods provided in the Java API for the ResourceBundle class [2] , we can access the string (i.e. the "value")<br />

associated with the key. Depending on which locale the application is handling, it will call the adequate resource<br />

bundle at runtime [3] .<br />

For instance, our resource bundle for the UK English locale can contain “firstKey = Localisation” and our US<br />

English one can contain “firstKey = Localization”. We will refer only to “firstKey” in the code and, according to the<br />

current locale settings, the application will use either “Localization” or “Localisation”.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!