Return the encoding of this document, as part of the XML declaration This
is null when unspecified or when it is not known (such as
when the Document was created in memory) or when the implementation does
not support this operation.
Return the encoding of this document, as part of the XML declaration This
is null when unspecified or when it is not known (such as
when the Document was created in memory) or when the implementation does
not support this operation.
The way this encoding is retrieved also depends on the way the XML source
is parsed. For instance, if the SAXReader is used and if the underlying
XMLReader implementation support the
org.xml.sax.ext.Locator2 interface, the result returned by
this method is specified by the getEncoding() method of
that interface.
Returns:
The encoding of this document, as stated in the XML declaration,
or null if unknown.