| java.lang.Object org.apache.xerces.impl.XMLScanner org.apache.xerces.impl.XMLDocumentFragmentScannerImpl org.apache.xerces.impl.XMLDocumentScannerImpl
All known Subclasses: org.apache.xerces.impl.XMLNSDocumentScannerImpl, org.apache.xerces.impl.XML11DocumentScannerImpl,
XMLDocumentScannerImpl | public class XMLDocumentScannerImpl extends XMLDocumentFragmentScannerImpl (Code) | | 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:
- http://xml.org/sax/features/namespaces
- http://xml.org/sax/features/validation
- http://apache.org/xml/features/nonvalidating/load-external-dtd
- http://apache.org/xml/features/scanner/notify-char-refs
- http://apache.org/xml/features/scanner/notify-builtin-refs
- http://apache.org/xml/properties/internal/symbol-table
- http://apache.org/xml/properties/internal/error-reporter
- http://apache.org/xml/properties/internal/entity-manager
- http://apache.org/xml/properties/internal/dtd-scanner
author: Glenn Marcy, IBM author: Andy Clark, IBM author: Arnaud Le Hors, IBM author: Eric Ye, IBM version: $Id: XMLDocumentScannerImpl.java 572055 2007-09-02 17:55:43Z mrglavas $ |
Inner Class :final protected class XMLDeclDispatcher implements Dispatcher | |
Inner Class :final protected class PrologDispatcher implements Dispatcher | |
Inner Class :final protected class DTDDispatcher implements Dispatcher | |
Inner Class :protected class ContentDispatcher extends FragmentContentDispatcher | |
Inner Class :final protected class TrailingMiscDispatcher implements Dispatcher | |
DISALLOW_DOCTYPE_DECL_FEATURE | final protected static String DISALLOW_DOCTYPE_DECL_FEATURE(Code) | | Feature identifier: load external DTD.
|
DTD_SCANNER | final protected static String DTD_SCANNER(Code) | | Property identifier: DTD scanner.
|
LOAD_EXTERNAL_DTD | final protected static String LOAD_EXTERNAL_DTD(Code) | | Feature identifier: load external DTD.
|
NAMESPACE_CONTEXT | final protected static String NAMESPACE_CONTEXT(Code) | | property identifier: NamespaceContext
|
SCANNER_STATE_DTD_EXTERNAL | final protected static int SCANNER_STATE_DTD_EXTERNAL(Code) | | Scanner state: open DTD external subset.
|
SCANNER_STATE_DTD_EXTERNAL_DECLS | final protected static int SCANNER_STATE_DTD_EXTERNAL_DECLS(Code) | | Scanner state: DTD external declarations.
|
SCANNER_STATE_DTD_INTERNAL_DECLS | final protected static int SCANNER_STATE_DTD_INTERNAL_DECLS(Code) | | Scanner state: DTD internal declarations.
|
SCANNER_STATE_PROLOG | final protected static int SCANNER_STATE_PROLOG(Code) | | Scanner state: prolog.
|
SCANNER_STATE_TRAILING_MISC | final protected static int SCANNER_STATE_TRAILING_MISC(Code) | | Scanner state: trailing misc.
|
SCANNER_STATE_XML_DECL | final protected static int SCANNER_STATE_XML_DECL(Code) | | Scanner state: XML declaration.
|
VALIDATION_MANAGER | final protected static String VALIDATION_MANAGER(Code) | | property identifier: ValidationManager
|
fDTDDispatcher | final protected Dispatcher fDTDDispatcher(Code) | | DTD dispatcher.
|
fDisallowDoctype | protected boolean fDisallowDoctype(Code) | | Disallow doctype declaration.
|
fDoctypeName | protected String fDoctypeName(Code) | | Doctype name.
|
fDoctypePublicId | protected String fDoctypePublicId(Code) | | Doctype declaration public identifier.
|
fDoctypeSystemId | protected String fDoctypeSystemId(Code) | | Doctype declaration system identifier.
|
fLoadExternalDTD | protected boolean fLoadExternalDTD(Code) | | Load external DTD.
|
fPrologDispatcher | final protected Dispatcher fPrologDispatcher(Code) | | Prolog dispatcher.
|
fScanningDTD | protected boolean fScanningDTD(Code) | | Scanning DTD.
|
fSeenDoctypeDecl | protected boolean fSeenDoctypeDecl(Code) | | Seen doctype declaration.
|
fTrailingMiscDispatcher | final protected Dispatcher fTrailingMiscDispatcher(Code) | | Trailing miscellaneous section dispatcher.
|
fXMLDeclDispatcher | final protected Dispatcher fXMLDeclDispatcher(Code) | | XML declaration dispatcher.
|
XMLDocumentScannerImpl | public XMLDocumentScannerImpl()(Code) | | Default constructor.
|
createContentDispatcher | protected Dispatcher createContentDispatcher()(Code) | | Creates a content dispatcher.
|
endEntity | public void endEntity(String name, Augmentations augs) throws XNIException(Code) | | 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.
Parameters: name - The name of the entity. throws: XNIException - Thrown by handler to signal an error. |
getFeatureDefault | public Boolean getFeatureDefault(String featureId)(Code) | | Returns the default state for a feature, or null if this
component does not want to report a default value for this
feature.
Parameters: featureId - The feature identifier. since: Xerces 2.2.0 |
getPropertyDefault | public Object getPropertyDefault(String propertyId)(Code) | | Returns the default state for a property, or null if this
component does not want to report a default value for this
property.
Parameters: propertyId - The property identifier. since: Xerces 2.2.0 |
getRecognizedFeatures | public String[] getRecognizedFeatures()(Code) | | 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 | public String[] getRecognizedProperties()(Code) | | 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 | protected String getScannerStateName(int state)(Code) | | Returns the scanner state name.
|
reset | public void reset(XMLComponentManager componentManager) throws XMLConfigurationException(Code) | | Resets the component. The component can query the component manager
about any features and properties that affect the operation of the
component.
Parameters: componentManager - The component manager. throws: SAXException - Thrown by component on initialization error.For example, if a feature or property isrequired for the operation of the component, thecomponent manager may throw aSAXNotRecognizedException or aSAXNotSupportedException. |
setFeature | public void setFeature(String featureId, boolean state) throws XMLConfigurationException(Code) | | 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.
Parameters: featureId - The feature identifier. Parameters: state - The state of the feature. throws: SAXNotRecognizedException - The component should not throwthis exception. throws: SAXNotSupportedException - The component should not throwthis exception. |
setProperty | public void setProperty(String propertyId, Object value) throws XMLConfigurationException(Code) | | 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.
Parameters: propertyId - The property identifier. Parameters: value - The value of the property. throws: SAXNotRecognizedException - The component should not throwthis exception. throws: SAXNotSupportedException - The component should not throwthis exception. |
startEntity | public void startEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code) | | 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.
Parameters: name - The name of the entity. Parameters: identifier - The resource identifier. Parameters: encoding - The auto-detected IANA encoding name of the entitystream. This value will be null in those situationswhere the entity encoding is not auto-detected (e.g.internal entities or a document entity that isparsed from a java.io.Reader). throws: XNIException - Thrown by handler to signal an error. |
Methods inherited from org.apache.xerces.impl.XMLDocumentFragmentScannerImpl | protected Dispatcher createContentDispatcher()(Code)(Java Doc) public void endEntity(String name, Augmentations augs) throws XNIException(Code)(Java Doc) public String getDispatcherName(Dispatcher dispatcher)(Code)(Java Doc) public XMLDocumentHandler getDocumentHandler()(Code)(Java Doc) public Boolean getFeatureDefault(String featureId)(Code)(Java Doc) public Object getPropertyDefault(String propertyId)(Code)(Java Doc) public String[] getRecognizedFeatures()(Code)(Java Doc) public String[] getRecognizedProperties()(Code)(Java Doc) protected String getScannerStateName(int state)(Code)(Java Doc) protected int handleEndElement(QName element, boolean isEmpty) throws XNIException(Code)(Java Doc) public void reset(XMLComponentManager componentManager) throws XMLConfigurationException(Code)(Java Doc) protected void scanAttribute(XMLAttributes attributes) throws IOException, XNIException(Code)(Java Doc) protected boolean scanCDATASection(boolean complete) throws IOException, XNIException(Code)(Java Doc) protected void scanCharReference() throws IOException, XNIException(Code)(Java Doc) protected void scanComment() throws IOException, XNIException(Code)(Java Doc) protected int scanContent() throws IOException, XNIException(Code)(Java Doc) public boolean scanDocument(boolean complete) throws IOException, XNIException(Code)(Java Doc) protected int scanEndElement() throws IOException, XNIException(Code)(Java Doc) protected void scanEntityReference() throws IOException, XNIException(Code)(Java Doc) protected void scanPIData(String target, XMLString data) throws IOException, XNIException(Code)(Java Doc) protected boolean scanStartElement() throws IOException, XNIException(Code)(Java Doc) protected boolean scanStartElementAfterName() throws IOException, XNIException(Code)(Java Doc) protected void scanStartElementName() throws IOException, XNIException(Code)(Java Doc) protected void scanXMLDeclOrTextDecl(boolean scanningTextDecl) throws IOException, XNIException(Code)(Java Doc) final protected void setDispatcher(Dispatcher dispatcher)(Code)(Java Doc) public void setDocumentHandler(XMLDocumentHandler documentHandler)(Code)(Java Doc) public void setFeature(String featureId, boolean state) throws XMLConfigurationException(Code)(Java Doc) public void setInputSource(XMLInputSource inputSource) throws IOException(Code)(Java Doc) public void setProperty(String propertyId, Object value) throws XMLConfigurationException(Code)(Java Doc) final protected void setScannerState(int state)(Code)(Java Doc) public void startEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc)
|
Methods inherited from org.apache.xerces.impl.XMLScanner | public void endEntity(String name, Augmentations augs) throws XNIException(Code)(Java Doc) public boolean getFeature(String featureId) throws XMLConfigurationException(Code)(Java Doc) protected String getVersionNotSupportedKey()(Code)(Java Doc) protected boolean isInvalid(int value)(Code)(Java Doc) protected boolean isInvalidLiteral(int value)(Code)(Java Doc) protected int isUnchangedByNormalization(XMLString value)(Code)(Java Doc) protected boolean isValidNCName(int value)(Code)(Java Doc) protected boolean isValidNameChar(int value)(Code)(Java Doc) protected boolean isValidNameStartChar(int value)(Code)(Java Doc) protected boolean isValidNameStartHighSurrogate(int value)(Code)(Java Doc) protected void normalizeWhitespace(XMLString value)(Code)(Java Doc) protected void normalizeWhitespace(XMLString value, int fromIndex)(Code)(Java Doc) protected void reportFatalError(String msgId, Object[] args) throws XNIException(Code)(Java Doc) public void reset(XMLComponentManager componentManager) throws XMLConfigurationException(Code)(Java Doc) protected void reset()(Code)(Java Doc) protected boolean scanAttributeValue(XMLString value, XMLString nonNormalizedValue, String atName, boolean checkEntities, String eleName) throws IOException, XNIException(Code)(Java Doc) protected int scanCharReferenceValue(XMLStringBuffer buf, XMLStringBuffer buf2) throws IOException, XNIException(Code)(Java Doc) protected void scanComment(XMLStringBuffer text) throws IOException, XNIException(Code)(Java Doc) protected void scanExternalID(String[] identifiers, boolean optionalSystemId) throws IOException, XNIException(Code)(Java Doc) protected void scanPI() throws IOException, XNIException(Code)(Java Doc) protected void scanPIData(String target, XMLString data) throws IOException, XNIException(Code)(Java Doc) public String scanPseudoAttribute(boolean scanningTextDecl, XMLString value) throws IOException, XNIException(Code)(Java Doc) protected boolean scanPubidLiteral(XMLString literal) throws IOException, XNIException(Code)(Java Doc) protected boolean scanSurrogates(XMLStringBuffer buf) throws IOException, XNIException(Code)(Java Doc) protected void scanXMLDeclOrTextDecl(boolean scanningTextDecl, String[] pseudoAttributeValues) throws IOException, XNIException(Code)(Java Doc) public void setFeature(String featureId, boolean value) throws XMLConfigurationException(Code)(Java Doc) public void setProperty(String propertyId, Object value) throws XMLConfigurationException(Code)(Java Doc) public void startEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc) protected boolean versionSupported(String version)(Code)(Java Doc)
|
|
|