public class XMLVersionDetector
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected static java.lang.String | ENTITY_MANAGERProperty identifier: entity manager. | 
| protected static java.lang.String | ERROR_REPORTERProperty identifier: error reporter. | 
| protected java.lang.String | fEncoding | 
| protected XMLEntityManager | fEntityManagerEntity manager. | 
| protected XMLErrorReporter | fErrorReporterError reporter. | 
| protected SymbolTable | fSymbolTableSymbol table. | 
| protected static java.lang.String | fVersionSymbolSymbol: "version". | 
| protected static java.lang.String | fXMLSymbol | 
| protected static java.lang.String | SYMBOL_TABLEProperty identifier: symbol table. | 
| Constructor and Description | 
|---|
| XMLVersionDetector() | 
| Modifier and Type | Method and Description | 
|---|---|
| short | determineDocVersion(org.apache.xerces.xni.parser.XMLInputSource inputSource)This methods scans the XML declaration to find out the version 
 (and provisional encoding)  of the document. | 
| void | reset(org.apache.xerces.xni.parser.XMLComponentManager componentManager) | 
| void | startDocumentParsing(XMLEntityHandler scanner,
                    short version)Reset the reference to the appropriate scanner given the version of the
 document and start document scanning. | 
protected static final java.lang.String SYMBOL_TABLE
protected static final java.lang.String ERROR_REPORTER
protected static final java.lang.String ENTITY_MANAGER
protected static final java.lang.String fVersionSymbol
protected static final java.lang.String fXMLSymbol
protected SymbolTable fSymbolTable
protected XMLErrorReporter fErrorReporter
protected XMLEntityManager fEntityManager
protected java.lang.String fEncoding
public void reset(org.apache.xerces.xni.parser.XMLComponentManager componentManager)
           throws org.apache.xerces.xni.parser.XMLConfigurationException
componentManager - The component manager.org.apache.xerces.xni.XNIException - Throws exception if required features and
                      properties cannot be found.org.apache.xerces.xni.parser.XMLConfigurationExceptionpublic void startDocumentParsing(XMLEntityHandler scanner, short version)
scanner - - the scanner to useversion - - the version of the document (XML 1.1 or XML 1.0).public short determineDocVersion(org.apache.xerces.xni.parser.XMLInputSource inputSource)
                          throws java.io.IOException
inputSource - java.io.IOExceptionCopyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.