org.apache.xerces.impl
public class XMLDocumentScannerImpl extends XMLDocumentFragmentScannerImpl
This component requires the following features and properties from the component manager that uses it:
Version: $Id: XMLDocumentScannerImpl.java,v 1.51 2005/02/24 19:03:49 mrglavas Exp $
Nested Class Summary | |
---|---|
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.
|
Field Summary | |
---|---|
protected static String | DISALLOW_DOCTYPE_DECL_FEATURE Feature identifier: load external DTD. |
protected static 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. |
protected Dispatcher | fDTDDispatcher DTD dispatcher. |
protected XMLDTDScanner | fDTDScanner DTD scanner. |
protected boolean | fLoadExternalDTD Load external DTD. |
protected NamespaceContext | fNamespaceContext Namespace support. |
protected Dispatcher | fPrologDispatcher Prolog dispatcher. |
protected boolean | fScanningDTD Scanning DTD. |
protected boolean | fSeenDoctypeDecl Seen doctype declaration. |
protected Dispatcher | fTrailingMiscDispatcher Trailing miscellaneous section dispatcher. |
protected ValidationManager | fValidationManager Validation manager . |
protected Dispatcher | fXMLDeclDispatcher XML declaration dispatcher. |
protected static String | LOAD_EXTERNAL_DTD Feature identifier: load external DTD. |
protected static String | NAMESPACE_CONTEXT property identifier: NamespaceContext |
protected static int | SCANNER_STATE_DTD_EXTERNAL Scanner state: open DTD external subset. |
protected static int | SCANNER_STATE_DTD_EXTERNAL_DECLS Scanner state: DTD external declarations. |
protected static int | SCANNER_STATE_DTD_INTERNAL_DECLS Scanner state: DTD internal declarations. |
protected static int | SCANNER_STATE_PROLOG Scanner state: prolog. |
protected static int | SCANNER_STATE_TRAILING_MISC Scanner state: trailing misc. |
protected static int | SCANNER_STATE_XML_DECL Scanner state: XML declaration. |
protected static String | VALIDATION_MANAGER property identifier: ValidationManager |
Constructor Summary | |
---|---|
XMLDocumentScannerImpl() Default constructor. |
Method Summary | |
---|---|
protected Dispatcher | createContentDispatcher() Creates a content dispatcher. |
void | endEntity(String name, Augmentations augs)
This method notifies the end of an entity. |
Boolean | getFeatureDefault(String featureId)
Returns the default state for a feature, or null if this
component does not want to report a default value for this
feature.
|
Object | getPropertyDefault(String propertyId)
Returns the default state for a property, or null if this
component does not want to report a default value for this
property.
|
String[] | getRecognizedFeatures()
Returns a list of feature identifiers that are recognized by
this component. |
String[] | getRecognizedProperties()
Returns a list of property identifiers that are recognized by
this component. |
protected String | getScannerStateName(int state) Returns the scanner state name. |
void | reset(XMLComponentManager componentManager)
Resets the component. |
protected boolean | scanDoctypeDecl() Scans a doctype declaration. |
void | setFeature(String featureId, boolean state)
Sets the state of a feature. |
void | setInputSource(XMLInputSource inputSource)
Sets the input source.
|
void | setProperty(String propertyId, Object value)
Sets the value of a property. |
void | startEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs)
This method notifies of the start of an entity. |
Parameters: name The name of the entity.
Throws: XNIException Thrown by handler to signal an error.
Parameters: featureId The feature identifier.
Since: Xerces 2.2.0
Parameters: propertyId The property identifier.
Since: Xerces 2.2.0
Parameters: componentManager The component manager.
Throws: SAXException 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.
Note: Components should silently ignore features that do not affect the operation of the component.
Parameters: featureId The feature identifier. state The state of the feature.
Throws: SAXNotRecognizedException The component should not throw this exception. SAXNotSupportedException The component should not throw this exception.
Parameters: inputSource The input source.
Throws: IOException Thrown on i/o error.
Note: Components should silently ignore properties that do not affect the operation of the component.
Parameters: propertyId The property identifier. value The value of the property.
Throws: SAXNotRecognizedException The component should not throw this exception. SAXNotSupportedException The component should not throw this exception.
Parameters: 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).
Throws: XNIException Thrown by handler to signal an error.