This component requires the following features and properties from the component manager that uses it:
| Modifier and Type | Class and Description |
|---|---|
| protected class | XMLDocumentScannerImpl.ContentDispatcher
Dispatcher to handle content scanning. |
| protected class | XMLDocumentScannerImpl.DTDDispatcher
Dispatcher to handle the internal and external DTD subsets. |
| protected class | XMLDocumentScannerImpl.PrologDispatcher
Dispatcher to handle prolog scanning. |
| protected class | XMLDocumentScannerImpl.TrailingMiscDispatcher
Dispatcher to handle trailing miscellaneous section scanning. |
| protected class | XMLDocumentScannerImpl.XMLDeclDispatcher
Dispatcher to handle XMLDecl scanning. |
| Modifier and Type | Field and Description |
|---|---|
| protected static final String | DISALLOW_DOCTYPE_DECL_FEATURE
Feature identifier: load external DTD. |
| protected static final String | DTD_SCANNER
Property identifier: DTD scanner. |
| protected boolean | fDisallowDoctype
Disallow doctype declaration. |
| protected String | fDoctypeName
Doctype name. |
| protected String | fDoctypePublicId
Doctype declaration public identifier. |
| protected String | fDoctypeSystemId
Doctype declaration system identifier. |
| private final XMLDTDDescription | fDTDDescription
A DTD Description. |
| protected final XMLDocumentFragmentScannerImpl. | fDTDDispatcher
DTD dispatcher. |
| protected XMLDTDScanner | fDTDScanner
DTD scanner. |
| private static final Boolean[] | FEATURE_DEFAULTS
Hides org. |
| private XMLInputSource | fExternalSubsetSource
External subset source. |
| protected boolean | fLoadExternalDTD
Load external DTD. |
| protected NamespaceContext | fNamespaceContext
Namespace support. |
| protected final XMLDocumentFragmentScannerImpl. | fPrologDispatcher
Prolog dispatcher. |
| protected boolean | fScanningDTD
Scanning DTD. |
| protected boolean | fSeenDoctypeDecl
Seen doctype declaration. |
| private final XMLString | fString
String.
|
| private final XMLStringBuffer | fStringBuffer
Hides org. |
| private final String[] | fStrings
Hides org. |
| protected final XMLDocumentFragmentScannerImpl. | fTrailingMiscDispatcher
Trailing miscellaneous section dispatcher. |
| protected ValidationManager | fValidationManager
Validation manager . |
| protected final XMLDocumentFragmentScannerImpl. | fXMLDeclDispatcher
XML declaration dispatcher. |
| protected static final String | LOAD_EXTERNAL_DTD
Feature identifier: load external DTD. |
| protected static final String | NAMESPACE_CONTEXT
property identifier: NamespaceContext |
| private static final Object[] | PROPERTY_DEFAULTS
Hides org. |
| private static final String[] | RECOGNIZED_FEATURES
Hides org. |
| private static final String[] | RECOGNIZED_PROPERTIES
Hides org. |
| protected static final int | SCANNER_STATE_DTD_EXTERNAL
Scanner state: open DTD external subset. |
| protected static final int | SCANNER_STATE_DTD_EXTERNAL_DECLS
Scanner state: DTD external declarations. |
| protected static final int | SCANNER_STATE_DTD_INTERNAL_DECLS
Scanner state: DTD internal declarations. |
| protected static final int | SCANNER_STATE_PROLOG
Scanner state: prolog. |
| protected static final int | SCANNER_STATE_TRAILING_MISC
Scanner state: trailing misc. |
| protected static final int | SCANNER_STATE_XML_DECL
Scanner state: XML declaration. |
| protected static final String | VALIDATION_MANAGER
property identifier: ValidationManager |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected XMLDocumentFragmentScannerImpl. | createContentDispatcher()
Overrides org. |
| public void | endEntity(String
The name of the entity. name, Augmentations Additional information that may include infoset augmentations augs)Overrides org. Implements org. |
| public Boolean | getFeatureDefault(String
The feature identifier. featureId)Overrides org. Implements org. |
| public Object | getPropertyDefault(String
The property identifier. propertyId)Overrides org. Implements org. |
| public String[] | getRecognizedFeatures()
Overrides org. Implements org. |
| public String[] | getRecognizedProperties()
Overrides org. Implements org. |
| protected String | getScannerStateName(int state)
Overrides org. |
| public void | reset(XMLComponentManager
The component manager. componentManager)Overrides org. Implements org. |
| protected boolean | |
| public void | setFeature(String
The feature identifier. featureId, boolean The state of the feature. state)Overrides org. Implements org. |
| public void | setInputSource(XMLInputSource
The input source. inputSource)Overrides org. Implements org. |
| public void | setProperty(String
The property identifier. propertyId, Object The value of the property. value)Overrides org. Implements org. |
| public void | startEntity(String
The name of the entity. name, XMLResourceIdentifier The resource identifier. identifier, String 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). encoding, Augmentations Additional information that may include infoset augmentations augs)Overrides org. Implements org. |
| DISALLOW_DOCTYPE_DECL_FEATURE | back to summary |
|---|---|
| protected static final String DISALLOW_DOCTYPE_DECL_FEATURE Feature identifier: load external DTD. | |
| DTD_SCANNER | back to summary |
|---|---|
| protected static final String DTD_SCANNER Property identifier: DTD scanner. | |
| fDisallowDoctype | back to summary |
|---|---|
| protected boolean fDisallowDoctype Disallow doctype declaration. | |
| fDoctypeName | back to summary |
|---|---|
| protected String fDoctypeName Doctype name. | |
| fDoctypePublicId | back to summary |
|---|---|
| protected String fDoctypePublicId Doctype declaration public identifier. | |
| fDoctypeSystemId | back to summary |
|---|---|
| protected String fDoctypeSystemId Doctype declaration system identifier. | |
| fDTDDescription | back to summary |
|---|---|
| private final XMLDTDDescription fDTDDescription A DTD Description. | |
| fDTDDispatcher | back to summary |
|---|---|
| protected final XMLDocumentFragmentScannerImpl. DTD dispatcher. | |
| fDTDScanner | back to summary |
|---|---|
| protected XMLDTDScanner fDTDScanner DTD scanner. | |
| FEATURE_DEFAULTS | back to summary |
|---|---|
| private static final Boolean[] FEATURE_DEFAULTS Hides org. Feature defaults. | |
| fExternalSubsetSource | back to summary |
|---|---|
| private XMLInputSource fExternalSubsetSource External subset source. | |
| fLoadExternalDTD | back to summary |
|---|---|
| protected boolean fLoadExternalDTD Load external DTD. | |
| fNamespaceContext | back to summary |
|---|---|
| protected NamespaceContext fNamespaceContext Namespace support. | |
| fPrologDispatcher | back to summary |
|---|---|
| protected final XMLDocumentFragmentScannerImpl. Prolog dispatcher. | |
| fScanningDTD | back to summary |
|---|---|
| protected boolean fScanningDTD Scanning DTD. | |
| fSeenDoctypeDecl | back to summary |
|---|---|
| protected boolean fSeenDoctypeDecl Seen doctype declaration. | |
| fString | back to summary |
|---|---|
| private final XMLString fString Hides org. String. | |
| fStringBuffer | back to summary |
|---|---|
| private final XMLStringBuffer fStringBuffer Hides org. String buffer. | |
| fStrings | back to summary |
|---|---|
| private final String[] fStrings Hides org. Array of 3 strings. | |
| fTrailingMiscDispatcher | back to summary |
|---|---|
| protected final XMLDocumentFragmentScannerImpl. Trailing miscellaneous section dispatcher. | |
| fValidationManager | back to summary |
|---|---|
| protected ValidationManager fValidationManager Validation manager . | |
| fXMLDeclDispatcher | back to summary |
|---|---|
| protected final XMLDocumentFragmentScannerImpl. XML declaration dispatcher. | |
| LOAD_EXTERNAL_DTD | back to summary |
|---|---|
| protected static final String LOAD_EXTERNAL_DTD Feature identifier: load external DTD. | |
| NAMESPACE_CONTEXT | back to summary |
|---|---|
| protected static final String NAMESPACE_CONTEXT property identifier: NamespaceContext | |
| PROPERTY_DEFAULTS | back to summary |
|---|---|
| private static final Object[] PROPERTY_DEFAULTS Hides org. Property defaults. | |
| RECOGNIZED_FEATURES | back to summary |
|---|---|
| private static final String[] RECOGNIZED_FEATURES Hides org. Recognized features. | |
| RECOGNIZED_PROPERTIES | back to summary |
|---|---|
| private static final String[] RECOGNIZED_PROPERTIES Hides org. Recognized properties. | |
| SCANNER_STATE_DTD_EXTERNAL | back to summary |
|---|---|
| protected static final int SCANNER_STATE_DTD_EXTERNAL Scanner state: open DTD external subset. | |
| SCANNER_STATE_DTD_EXTERNAL_DECLS | back to summary |
|---|---|
| protected static final int SCANNER_STATE_DTD_EXTERNAL_DECLS Scanner state: DTD external declarations. | |
| SCANNER_STATE_DTD_INTERNAL_DECLS | back to summary |
|---|---|
| protected static final int SCANNER_STATE_DTD_INTERNAL_DECLS Scanner state: DTD internal declarations. | |
| SCANNER_STATE_PROLOG | back to summary |
|---|---|
| protected static final int SCANNER_STATE_PROLOG Scanner state: prolog. | |
| SCANNER_STATE_TRAILING_MISC | back to summary |
|---|---|
| protected static final int SCANNER_STATE_TRAILING_MISC Scanner state: trailing misc. | |
| SCANNER_STATE_XML_DECL | back to summary |
|---|---|
| protected static final int SCANNER_STATE_XML_DECL Scanner state: XML declaration. | |
| VALIDATION_MANAGER | back to summary |
|---|---|
| protected static final String VALIDATION_MANAGER property identifier: ValidationManager | |
| XMLDocumentScannerImpl | back to summary |
|---|---|
| public XMLDocumentScannerImpl() Default constructor. | |
| createContentDispatcher | back to summary |
|---|---|
| protected XMLDocumentFragmentScannerImpl. Overrides org. Creates a content dispatcher. | |
| endEntity | back to summary |
|---|---|
| public void endEntity(String name, Augmentations augs) throws XNIException Overrides org. Implements org. 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.
| |
| getFeatureDefault | back to summary |
|---|---|
| public Boolean getFeatureDefault(String featureId) Overrides org. Implements org. Returns the default state for a feature, or null if this component does not want to report a default value for this feature.
| |
| getPropertyDefault | back to summary |
|---|---|
| public Object getPropertyDefault(String propertyId) Overrides org. Implements org. Returns the default state for a property, or null if this component does not want to report a default value for this property.
| |
| getRecognizedFeatures | back to summary |
|---|---|
| public String[] getRecognizedFeatures() Overrides org. Implements org. 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. | |
| getRecognizedProperties | back to summary |
|---|---|
| public String[] getRecognizedProperties() Overrides org. Implements org. 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. | |
| getScannerStateName | back to summary |
|---|---|
| protected String getScannerStateName(int state) Overrides org. Returns the scanner state name. | |
| reset | back to summary |
|---|---|
| public void reset(XMLComponentManager componentManager) throws XMLConfigurationException Overrides org. Implements org. Resets the component. The component can query the component manager about any features and properties that affect the operation of the component.
| |
| scanDoctypeDecl | back to summary |
|---|---|
| protected boolean scanDoctypeDecl() throws IOException, XNIException Scans a doctype declaration. | |
| setFeature | back to summary |
|---|---|
| public void setFeature(String featureId, boolean state) throws XMLConfigurationException Overrides org. Implements org. 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.
| |
| setInputSource | back to summary |
|---|---|
| public void setInputSource(XMLInputSource inputSource) throws IOException Overrides org. Implements org. Sets the input source.
| |
| setProperty | back to summary |
|---|---|
| public void setProperty(String propertyId, Object value) throws XMLConfigurationException Overrides org. Implements org. 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.
| |
| startEntity | back to summary |
|---|---|
| public void startEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException Overrides org. Implements org. 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.
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | Returns: True if the caller should stop and return true which allows the scanner to switch to a new scanning dispatcher. A return value of false indicates that the content dispatcher should continue as normal. |
| protected void | endOfFileHook(EOFException e)
Overrides org. |
| protected void | resolveExternalSubsetAndRead()
Attempt to locate an external subset for a document that does not otherwise have one. |
| protected boolean | Returns: True if the "DOCTYPE" was scanned; false if "DOCTYPE" was not scanned.Overrides org. |
| protected boolean | Returns: True if the caller should stop and return true which allows the scanner to switch to a new scanning dispatcher. A return value of false indicates that the content dispatcher should continue as normal.Overrides org. |
| ContentDispatcher | back to summary |
|---|---|
| protected ContentDispatcher() | |
| elementDepthIsZeroHook | back to summary |
|---|---|
| protected boolean elementDepthIsZeroHook() throws IOException, XNIException Element depth iz zero. This methos is a hook for subclasses to add code to handle when the element depth hits zero. When scanning a document fragment, an element depth of zero is normal. However, when scanning a full XML document, the scanner must handle the trailing miscellanous section of the document after the end of the document's root element.
| |
| endOfFileHook | back to summary |
|---|---|
| protected void endOfFileHook(EOFException e) throws IOException, XNIException Overrides org. End of file hook. This method is a hook for subclasses to add code that handles the end of file. The end of file in a document fragment is OK if the markup depth is zero. However, when scanning a full XML document, an end of file is always premature. | |
| resolveExternalSubsetAndRead | back to summary |
|---|---|
| protected void resolveExternalSubsetAndRead() throws IOException, XNIException Attempt to locate an external subset for a document that does not otherwise have one. If an external subset is located, then it is scanned. | |
| scanForDoctypeHook | back to summary |
|---|---|
| protected boolean scanForDoctypeHook() throws IOException, XNIException Overrides org. Scan for DOCTYPE hook. This method is a hook for subclasses to add code to handle scanning for a the "DOCTYPE" string after the string " True if the "DOCTYPE" was scanned; false if "DOCTYPE" was not scanned. | |
| scanRootElementHook | back to summary |
|---|---|
| protected boolean scanRootElementHook() throws IOException, XNIException Overrides org. Scan for root element hook. This method is a hook for subclasses to add code that handles scanning for the root element. When scanning a document fragment, there is no "root" element. However, when scanning a full XML document, the scanner must handle the root element specially.
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if there is more to dispatch either from this or a another dispatcher.True if this dispatcher is intended to scan
and dispatch as much as possible. complete)Implements org. |
| DTDDispatcher | back to summary |
|---|---|
| protected DTDDispatcher() | |
| dispatch | back to summary |
|---|---|
| public boolean dispatch(boolean complete) throws IOException, XNIException Implements org. Dispatch an XML "event".
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if there is more to dispatch either from this or a another dispatcher.True if this dispatcher is intended to scan
and dispatch as much as possible. complete)Implements org. |
| PrologDispatcher | back to summary |
|---|---|
| protected PrologDispatcher() | |
| dispatch | back to summary |
|---|---|
| public boolean dispatch(boolean complete) throws IOException, XNIException Implements org. Dispatch an XML "event".
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if there is more to dispatch either from this or a another dispatcher.True if this dispatcher is intended to scan
and dispatch as much as possible. complete)Implements org. |
| TrailingMiscDispatcher | back to summary |
|---|---|
| protected TrailingMiscDispatcher() | |
| dispatch | back to summary |
|---|---|
| public boolean dispatch(boolean complete) throws IOException, XNIException Implements org. Dispatch an XML "event".
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if there is more to dispatch either from this or a another dispatcher.True if this dispatcher is intended to scan
and dispatch as much as possible. complete)Implements org. |
| XMLDeclDispatcher | back to summary |
|---|---|
| protected XMLDeclDispatcher() | |
| dispatch | back to summary |
|---|---|
| public boolean dispatch(boolean complete) throws IOException, XNIException Implements org. Dispatch an XML "event".
| |