Class XmlEncodingBase
- java.lang.Object
-
- org.apache.tomcat.util.descriptor.web.XmlEncodingBase
-
- Direct Known Subclasses:
ErrorPage,FilterMap,JspPropertyGroup,LoginConfig,SecurityCollection,SecurityConstraint,WebXml
@Deprecated public abstract class XmlEncodingBase extends java.lang.ObjectDeprecated.This abstract class will be removed in Tomcat 12 onwardsBase class for those elements that need to track the encoding used in the source XML.
-
-
Constructor Summary
Constructors Constructor Description XmlEncodingBase()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.nio.charset.CharsetgetCharset()Deprecated.voidsetCharset(java.nio.charset.Charset charset)Deprecated.
-
-
-
Method Detail
-
setCharset
@Deprecated public void setCharset(java.nio.charset.Charset charset)
Deprecated.Set the character encoding of the XML source used to populate this object.- Parameters:
charset- The character encoding
-
getCharset
@Deprecated public java.nio.charset.Charset getCharset()
Deprecated.Obtain the character encoding of the XML source that was used to populate this object.- Returns:
- The character encoding of the associated XML source or
UTF-8if the encoding could not be determined
-
-