Top Description Fields Constructors Methods
org.apache.tomcat.util.descriptor.web

public abstract Class XmlEncodingBase

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.tomcat.util.descriptor.web.ErrorPage, org.apache.tomcat.util.descriptor.web.FilterMap, org.apache.tomcat.util.descriptor.web.JspPropertyGroup, org.apache.tomcat.util.descriptor.web.LoginConfig, org.apache.tomcat.util.descriptor.web.SecurityCollection, org.apache.tomcat.util.descriptor.web.SecurityConstraint, org.apache.tomcat.util.descriptor.web.WebXml
Imports
java.nio.charset.Charset, .StandardCharsets

Base class for those elements that need to track the encoding used in the source XML.

Field Summary

Modifier and TypeField and Description
private Charset

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Charset

Returns:

The character encoding of the associated XML source or UTF-8 if the encoding could not be determined
getCharset
()

Obtain the character encoding of the XML source that was used to populated this object.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

charsetback to summary
private Charset charset

Constructor Detail

XmlEncodingBaseback to summary
public XmlEncodingBase()

Method Detail

getCharsetback to summary
public Charset getCharset()

Obtain the character encoding of the XML source that was used to populated this object.

Returns:Charset

The character encoding of the associated XML source or UTF-8 if the encoding could not be determined

setCharsetback to summary
public void setCharset(Charset charset)