public class XMLVersionDetector extends Object
Modifier and Type | Field and Description |
---|---|
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.
|
Constructor and Description |
---|
XMLVersionDetector() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected static final String SYMBOL_TABLE
protected static final String ERROR_REPORTER
protected static final String ENTITY_MANAGER
protected static final String fVersionSymbol
protected static final String fXMLSymbol
protected SymbolTable fSymbolTable
protected XMLErrorReporter fErrorReporter
protected XMLEntityManager fEntityManager
protected String fEncoding
public void reset(XMLComponentManager componentManager) throws XMLConfigurationException
componentManager
- The component manager.XNIException
- Throws exception if required features and
properties cannot be found.XMLConfigurationException
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(XMLInputSource inputSource) throws IOException
inputSource
- IOException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.