java.lang.Object | |||
↳ | org.apache.xerces.impl.XMLScanner | ||
↳ | org.apache.xerces.impl.XMLDocumentFragmentScannerImpl | ||
↳ | org.apache.xerces.impl.XMLDocumentScannerImpl |
Known Direct Subclasses |
Known Indirect Subclasses |
This class is responsible for scanning XML document structure and content. The scanner acts as the source for the document information which is communicated to the document handler.
This component requires the following features and properties from the component manager that uses it:
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
XMLDocumentScannerImpl.ContentDispatcher | Dispatcher to handle content scanning. | ||||||||||
XMLDocumentScannerImpl.DTDDispatcher | Dispatcher to handle the internal and external DTD subsets. | ||||||||||
XMLDocumentScannerImpl.PrologDispatcher | Dispatcher to handle prolog scanning. | ||||||||||
XMLDocumentScannerImpl.TrailingMiscDispatcher | Dispatcher to handle trailing miscellaneous section scanning. | ||||||||||
XMLDocumentScannerImpl.XMLDeclDispatcher | Dispatcher to handle XMLDecl scanning. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | DISALLOW_DOCTYPE_DECL_FEATURE | Feature identifier: load external DTD. | |||||||||
String | DTD_SCANNER | Property identifier: DTD scanner. | |||||||||
String | LOAD_EXTERNAL_DTD | Feature identifier: load external DTD. | |||||||||
String | NAMESPACE_CONTEXT | property identifier: NamespaceContext | |||||||||
int | SCANNER_STATE_DTD_EXTERNAL | Scanner state: open DTD external subset. | |||||||||
int | SCANNER_STATE_DTD_EXTERNAL_DECLS | Scanner state: DTD external declarations. | |||||||||
int | SCANNER_STATE_DTD_INTERNAL_DECLS | Scanner state: DTD internal declarations. | |||||||||
int | SCANNER_STATE_PROLOG | Scanner state: prolog. | |||||||||
int | SCANNER_STATE_TRAILING_MISC | Scanner state: trailing misc. | |||||||||
int | SCANNER_STATE_XML_DECL | Scanner state: XML declaration. | |||||||||
String | VALIDATION_MANAGER | property identifier: ValidationManager |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
| |||||||||||
From class
org.apache.xerces.impl.XMLScanner
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
fDTDDispatcher | DTD dispatcher. | ||||||||||
fDTDScanner | DTD scanner. | ||||||||||
fDisallowDoctype | Disallow doctype declaration. | ||||||||||
fDoctypeName | Doctype name. | ||||||||||
fDoctypePublicId | Doctype declaration public identifier. | ||||||||||
fDoctypeSystemId | Doctype declaration system identifier. | ||||||||||
fLoadExternalDTD | Load external DTD. | ||||||||||
fNamespaceContext | Namespace support. | ||||||||||
fPrologDispatcher | Prolog dispatcher. | ||||||||||
fScanningDTD | Scanning DTD. | ||||||||||
fSeenDoctypeDecl | Seen doctype declaration. | ||||||||||
fTrailingMiscDispatcher | Trailing miscellaneous section dispatcher. | ||||||||||
fValidationManager | Validation manager . | ||||||||||
fXMLDeclDispatcher | XML declaration dispatcher. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
| |||||||||||
From class
org.apache.xerces.impl.XMLScanner
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method notifies the end of an entity.
| |||||||||||
Returns the default state for a feature, or null if this
component does not want to report a default value for this
feature.
| |||||||||||
Returns the default state for a property, or null if this
component does not want to report a default value for this
property.
| |||||||||||
Returns a list of feature identifiers that are recognized by
this component.
| |||||||||||
Returns a list of property identifiers that are recognized by
this component.
| |||||||||||
Resets the component.
| |||||||||||
Sets the state of a feature.
| |||||||||||
Sets the input source.
| |||||||||||
Sets the value of a property.
| |||||||||||
This method notifies of the start of an entity.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a content dispatcher.
| |||||||||||
Returns the scanner state name.
| |||||||||||
Scans a doctype declaration.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
| |||||||||||
From class
org.apache.xerces.impl.XMLScanner
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.xerces.impl.XMLEntityHandler
| |||||||||||
From interface
org.apache.xerces.xni.parser.XMLComponent
| |||||||||||
From interface
org.apache.xerces.xni.parser.XMLDocumentScanner
| |||||||||||
From interface
org.apache.xerces.xni.parser.XMLDocumentSource
|
Feature identifier: load external DTD.
Property identifier: DTD scanner.
Feature identifier: load external DTD.
property identifier: NamespaceContext
Scanner state: open DTD external subset.
Scanner state: DTD external declarations.
Scanner state: DTD internal declarations.
Scanner state: prolog.
Scanner state: trailing misc.
Scanner state: XML declaration.
property identifier: ValidationManager
Disallow doctype declaration.
Load external DTD.
Scanning DTD.
Seen doctype declaration.
Trailing miscellaneous section dispatcher.
Default constructor.
This method notifies the end of an entity. The DTD has the pseudo-name of "[dtd]" parameter entity names start with '%'; and general entities are just specified by their name.
name | The name of the entity. |
---|---|
augs | Additional information that may include infoset augmentations |
XNIException | Thrown by handler to signal an error. |
---|
Returns the default state for a feature, or null if this component does not want to report a default value for this feature.
featureId | The feature identifier. |
---|
Returns the default state for a property, or null if this component does not want to report a default value for this property.
propertyId | The property identifier. |
---|
Returns a list of feature identifiers that are recognized by this component. This method may return null if no features are recognized by this component.
Returns a list of property identifiers that are recognized by this component. This method may return null if no properties are recognized by this component.
Resets the component. The component can query the component manager about any features and properties that affect the operation of the component.
componentManager | The component manager. |
---|
Thrown by component on initialization error. For example, if a feature or property is required for the operation of the component, the component manager may throw a SAXNotRecognizedException or a SAXNotSupportedException. | |
XMLConfigurationException |
Sets the state of a feature. This method is called by the component manager any time after reset when a feature changes state.
Note: Components should silently ignore features that do not affect the operation of the component.
featureId | The feature identifier. |
---|---|
state | The state of the feature. |
The component should not throw this exception. | |
The component should not throw this exception. | |
XMLConfigurationException |
Sets the input source.
inputSource | The input source. |
---|
IOException | Thrown on i/o error. |
---|
Sets the value of a property. This method is called by the component manager any time after reset when a property changes value.
Note: Components should silently ignore properties that do not affect the operation of the component.
propertyId | The property identifier. |
---|---|
value | The value of the property. |
The component should not throw this exception. | |
The component should not throw this exception. | |
XMLConfigurationException |
This method notifies of the start of an entity. The DTD has the pseudo-name of "[dtd]" parameter entity names start with '%'; and general entities are just specified by their name.
name | The name of the entity. |
---|---|
identifier | The resource identifier. |
encoding | The auto-detected IANA encoding name of the entity stream. This value will be null in those situations where the entity encoding is not auto-detected (e.g. internal entities or a document entity that is parsed from a java.io.Reader). |
augs | Additional information that may include infoset augmentations |
XNIException | Thrown by handler to signal an error. |
---|
Creates a content dispatcher.