Class XmlEncodingBase

    • Constructor Detail

      • XmlEncodingBase

        public XmlEncodingBase()
    • Method Detail

      • setEncoding

        @Deprecated
        public void setEncoding​(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 String getEncoding()
        Deprecated.
        This method will be removed in Tomcat 9
        Obtain the encoding of the XML source that was used to populated this object.
        Returns:
        The encoding of the associated XML source or UTF-8 if the encoding could not be determined
      • setCharset

        public void setCharset​(Charset charset)
      • getCharset

        public 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-8 if the encoding could not be determined