|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xerces.impl.XMLVersionDetector
This class scans the version of the document to determine which scanner to use: XML 1.1 or XML 1.0. The version is scanned using XML 1.1. scanner.
Field Summary | |
protected static java.lang.String |
ENTITY_MANAGER
Property identifier: entity manager. |
protected static java.lang.String |
ERROR_REPORTER
Property identifier: error reporter. |
protected java.lang.String |
fEncoding
|
protected XMLEntityManager |
fEntityManager
Entity manager. |
protected XMLErrorReporter |
fErrorReporter
Error reporter. |
protected SymbolTable |
fSymbolTable
Symbol table. |
protected static java.lang.String |
fVersionSymbol
Symbol: "version". |
protected static java.lang.String |
fXMLSymbol
|
protected static java.lang.String |
SYMBOL_TABLE
Property identifier: symbol table. |
Constructor Summary | |
XMLVersionDetector()
|
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
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
Constructor Detail |
public XMLVersionDetector()
Method Detail |
public void reset(org.apache.xerces.xni.parser.XMLComponentManager componentManager) throws org.apache.xerces.xni.parser.XMLConfigurationException
componentManager
- The component manager.SAXException
- Throws exception if required features and
properties cannot be found.public 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.IOException
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |