usb.util
Class LangCode

java.lang.Object
  |
  +--usb.util.LangCode

public class LangCode
extends java.lang.Object

I18N support. USB does not use standard ISO language codes, but instead uses numeric codes defined by Microsoft. This class maps some of those to standard Java locale constants (which use the ISO codes), but not all of the numeric codes are recognized. Locales using English, French, German, Italian, Portuguese, Chinese, Japanese, Korean, or Russian as their language should have reasonably good support.

Note: Some embedded configurations don't guarantee enough functionality to rely on this class being available.


Method Summary
static java.util.Locale getLocale(int langcode)
          Utility method returning a locale appropriate to the USB language code passed, or null if the code is not recognized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLocale

public static java.util.Locale getLocale(int langcode)
Utility method returning a locale appropriate to the USB language code passed, or null if the code is not recognized.

See Also:
ControlMessage.getLanguages(usb.core.Device)