Class Overview
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. @xerces.internal
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
protected
static
final
String
ENTITY_MANAGER
Property identifier: entity manager.
Constant Value:
"http://apache.org/xml/properties/internal/entity-manager"
protected
static
final
String
ERROR_REPORTER
Property identifier: error reporter.
Constant Value:
"http://apache.org/xml/properties/internal/error-reporter"
protected
static
final
String
SYMBOL_TABLE
Property identifier: symbol table.
Constant Value:
"http://apache.org/xml/properties/internal/symbol-table"
Fields
protected
static
final
String
fVersionSymbol
protected
static
final
String
fXMLSymbol
Public Constructors
public
XMLVersionDetector
()
Public Methods
public
short
determineDocVersion
(XMLInputSource inputSource)
This methods scans the XML declaration to find out the version
(and provisional encoding) of the document.
The scanning is doing using XML 1.1 scanner.
Returns
- short - Constants.XML_VERSION_1_1 if document version 1.1,
otherwise Constants.XML_VERSION_1_0
Parameters
componentManager
| The component manager. |
public
void
startDocumentParsing
(XMLEntityHandler scanner, short version)
Reset the reference to the appropriate scanner given the version of the
document and start document scanning.
Parameters
scanner
| - the scanner to use |
version
| - the version of the document (XML 1.1 or XML 1.0).
|