getEncoding()

Retrieves the character encoding that the data handler is using.

Syntax

public final String getEncoding();
 

Parameters

None.

Return values

A String containing the data handler's character encoding.

Notes

The getEncoding() method retrieves the data handler's character encoding. The character encoding is part of the locale, which defines cultural conventions for data according to language, country (or territory).This method is the accessor method that retrieves the value of a private character-encoding variable in the DataHandler class. This character encoding should indicate the character encoding of the serialized data that the data handler is processing.

This method is useful when the data handler needs to perform character-encoding processing, such as character conversion.

See also

setEncoding()

Copyright IBM Corp. 1997, 2003