org.apache.xerces.impl
public class XMLVersionDetector extends Object
Version: $Id: XMLVersionDetector.java,v 1.14 2004/10/04 21:45:48 mrglavas Exp $
UNKNOWN:
Field Summary | |
---|---|
protected static String | ENTITY_MANAGER Property identifier: entity manager. |
protected static String | ERROR_REPORTER Property identifier: error reporter. |
protected String | fEncoding |
protected XMLEntityManager | fEntityManager Entity manager. |
protected XMLErrorReporter | fErrorReporter Error reporter. |
protected SymbolTable | fSymbolTable Symbol table. |
protected static String | fVersionSymbol Symbol: "version". |
protected static String | fXMLSymbol |
protected static String | SYMBOL_TABLE Property identifier: symbol table. |
Method Summary | |
---|---|
short | determineDocVersion(XMLInputSource inputSource)
This methods scans the XML declaration to find out the version
(and provisional encoding) of the document.
|
void | reset(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. |
Parameters: inputSource
Returns: short - Constants.XML_VERSION_1_1 if document version 1.1, otherwise Constants.XML_VERSION_1_0
Throws: IOException
Parameters: componentManager The component manager.
Throws: SAXException Throws exception if required features and properties cannot be found.
Parameters: scanner - the scanner to use version - the version of the document (XML 1.1 or XML 1.0).