org.apache.jasper.xmlparser
Class XMLEncodingDetector
java.lang.Object
org.apache.jasper.xmlparser.XMLEncodingDetector
public class XMLEncodingDetector
extends java.lang.Object
getEncoding
public static Object[] getEncoding(String fname,
JarFile jarFile,
JspCompilationContext ctxt,
ErrorDispatcher err)
throws IOException,
JasperException
Autodetects the encoding of the XML document supplied by the given
input stream.
Encoding autodetection is done according to the XML 1.0 specification,
Appendix F.1: Detection Without External Encoding Information.
err
- The error dispatcher
- Two-element array, where the first element (of type
java.lang.String) contains the name of the autodetected encoding, and
the second element (of type java.lang.Boolean) specifies whether the
encoding was specified by the encoding attribute of an XML declaration
(prolog).
Copyright B) 2000 Apache Software Foundation. All Rights Reserved.