getLocale()

Retrieves the locale of the data handler.

Syntax

public final Locale getLocale();
 

Parameters

None.

Return values

A Java Locale object that describes the locale for the data handler's environment.

Notes

The getLocale() method retrieves the data handler's locale, which defines cultural conventions for data according to language, country (or territory), and a character encoding. This method is the accessor method that retrieves the value of a private locale variable in the DataHandler class. By default, the data handler's locale is the locale of the operating system on which the data handler runs.

This method is useful when the data handler needs to perform locale-sensitive processing.

See also

setLocale()

Copyright IBM Corp. 1997, 2003