File.getEncoding

The encoding is initially null. After a successful file loading or saving operation, the encoding is non-null.

Returns

the character encoding.