Class XmlEncodingBase
- java.lang.Object
- 
- org.apache.tomcat.util.descriptor.web.XmlEncodingBase
 
- 
- Direct Known Subclasses:
- ErrorPage,- FilterMap,- JspPropertyGroup,- LoginConfig,- SecurityCollection,- SecurityConstraint,- WebXml
 
 public abstract class XmlEncodingBase extends java.lang.ObjectBase class for those elements that need to track the encoding used in the source XML.
- 
- 
Constructor SummaryConstructors Constructor Description XmlEncodingBase()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.nio.charset.CharsetgetCharset()Obtain the character encoding of the XML source that was used to populated this object.java.lang.StringgetEncoding()Deprecated.This method will be removed in Tomcat 9voidsetCharset(java.nio.charset.Charset charset)voidsetEncoding(java.lang.String encoding)Deprecated.This method will be removed in Tomcat 9
 
- 
- 
- 
Method Detail- 
setEncoding@Deprecated public void setEncoding(java.lang.String encoding) Deprecated.This method will be removed in Tomcat 9- Parameters:
- encoding- The encoding of the XML source that was used to populated this object.
 
 - 
getEncoding@Deprecated public java.lang.String getEncoding() Deprecated.This method will be removed in Tomcat 9Obtain the encoding of the XML source that was used to populated this object.- Returns:
- The encoding of the associated XML source or UTF-8if the encoding could not be determined
 
 - 
setCharsetpublic void setCharset(java.nio.charset.Charset charset) 
 - 
getCharsetpublic java.nio.charset.Charset 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-8if the encoding could not be determined
 
 
- 
 
-