Class XmlEncodingBase
java.lang.Object
org.apache.tomcat.util.descriptor.web.XmlEncodingBase
- Direct Known Subclasses:
ErrorPage
,FilterMap
,JspPropertyGroup
,LoginConfig
,SecurityCollection
,SecurityConstraint
,WebXml
Base class for those elements that need to track the encoding used in the
source XML.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionObtain the character encoding of the XML source that was used to populated this object.void
setCharset
(Charset charset)
-
Constructor Details
-
XmlEncodingBase
public XmlEncodingBase()
-
-
Method Details
-
setCharset
-
getCharset
Obtain the character encoding of the XML source that was used to populated this object.- Returns:
- The character encoding of the associated XML source or
UTF-8
if the encoding could not be determined
-