Class XMLEncodingDetector

  • All Implemented Interfaces:
    EncodingDetector

    public class XMLEncodingDetector
    extends XMLParseState
    implements EncodingDetector
    This is the XML encoding detector. It is basically looking for the preamble's <?xml ... ?> tag, which it parses looking for the "encoding" attribute. It stops either when it is beyond any possibility of finding the preamble, or it finds the tag, whichever comes first.
    • Field Detail

      • encoding

        protected java.lang.String encoding
    • Constructor Detail

      • XMLEncodingDetector

        public XMLEncodingDetector()
        Constructor.