com.ibm.as400.access
Class NLS

java.lang.Object
  |
  +--com.ibm.as400.access.NLS

public final class NLS
extends java.lang.Object

The NLS class contains a set of static methods that can be used to access various pieces of National Language Support information (such as language and country descriptions) on an OS/400 server.


Method Summary
static java.lang.String getCountryDescription(AS400 system, java.lang.String countryID)
          Retrieves the descriptive text for the specified country identifier.
static java.lang.String getLanguageDescription(AS400 system, java.lang.String languageID)
          Retrieves the descriptive text for the specified language identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCountryDescription

public static java.lang.String getCountryDescription(AS400 system,
                                                     java.lang.String countryID)
                                              throws AS400Exception,
                                                     AS400SecurityException,
                                                     ErrorCompletingRequestException,
                                                     java.lang.InterruptedException,
                                                     java.io.IOException,
                                                     ObjectDoesNotExistException
Retrieves the descriptive text for the specified country identifier. The list is cached, so that a subsequent call to this method will return immediately if the specified country identifier is in the list. If it is not in the list, the system will be queried.
Parameters:
system - The OS/400 server.
countryID - The country identifier.
Returns:
The descriptive text.

getLanguageDescription

public static java.lang.String getLanguageDescription(AS400 system,
                                                      java.lang.String languageID)
                                               throws AS400Exception,
                                                      AS400SecurityException,
                                                      ErrorCompletingRequestException,
                                                      java.lang.InterruptedException,
                                                      java.io.IOException,
                                                      ObjectDoesNotExistException
Retrieves the descriptive text for the specified language identifier. The list is cached, so that a subsequent call to this method will return immediately if the specified language identifier is in the list. If it is not in the list, the system will be queried.
Parameters:
system - The OS/400 server.
languageID - The language identifier.
Returns:
The descriptive text.