|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.apache.xerces.impl.XMLScanner
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl
weblogic.apache.xerces.impl.XMLDocumentScannerImpl
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 Class Summary | |
protected class |
XMLDocumentScannerImpl.ContentDispatcher
Deprecated. Dispatcher to handle content scanning. |
protected class |
XMLDocumentScannerImpl.DTDDispatcher
Deprecated. Dispatcher to handle the internal and external DTD subsets. |
protected class |
XMLDocumentScannerImpl.PrologDispatcher
Deprecated. Dispatcher to handle prolog scanning. |
protected class |
XMLDocumentScannerImpl.TrailingMiscDispatcher
Deprecated. Dispatcher to handle trailing miscellaneous section scanning. |
protected class |
XMLDocumentScannerImpl.XMLDeclDispatcher
Deprecated. Dispatcher to handle XMLDecl scanning. |
Nested classes inherited from class weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl |
XMLDocumentFragmentScannerImpl.Dispatcher, XMLDocumentFragmentScannerImpl.ElementStack, XMLDocumentFragmentScannerImpl.FragmentContentDispatcher |
Field Summary | |
protected static String |
DTD_SCANNER
Deprecated. Property identifier: DTD scanner. |
protected String |
fDoctypeName
Deprecated. Doctype name. |
protected String |
fDoctypePublicId
Deprecated. Doctype declaration public identifier. |
protected String |
fDoctypeSystemId
Deprecated. Doctype declaration system identifier. |
protected XMLDocumentFragmentScannerImpl.Dispatcher |
fDTDDispatcher
Deprecated. DTD dispatcher. |
protected XMLDTDScanner |
fDTDScanner
Deprecated. DTD scanner. |
protected boolean |
fLoadExternalDTD
Deprecated. Load external DTD. |
protected XMLDocumentFragmentScannerImpl.Dispatcher |
fPrologDispatcher
Deprecated. Prolog dispatcher. |
protected boolean |
fScanningDTD
Deprecated. Scanning DTD. |
protected boolean |
fSeenDoctypeDecl
Deprecated. Seen doctype declaration. |
protected XMLDocumentFragmentScannerImpl.Dispatcher |
fTrailingMiscDispatcher
Deprecated. Trailing miscellaneous section dispatcher. |
protected ValidationManager |
fValidationManager
Deprecated. Validation manager . |
protected XMLDocumentFragmentScannerImpl.Dispatcher |
fXMLDeclDispatcher
Deprecated. XML declaration dispatcher. |
protected static String |
LOAD_EXTERNAL_DTD
Deprecated. Feature identifier: load external DTD. |
protected static int |
SCANNER_STATE_DTD_EXTERNAL
Deprecated. Scanner state: open DTD external subset. |
protected static int |
SCANNER_STATE_DTD_EXTERNAL_DECLS
Deprecated. Scanner state: DTD external declarations. |
protected static int |
SCANNER_STATE_DTD_INTERNAL_DECLS
Deprecated. Scanner state: DTD internal declarations. |
protected static int |
SCANNER_STATE_PROLOG
Deprecated. Scanner state: prolog. |
protected static int |
SCANNER_STATE_TRAILING_MISC
Deprecated. Scanner state: trailing misc. |
protected static int |
SCANNER_STATE_XML_DECL
Deprecated. Scanner state: XML declaration. |
protected static String |
VALIDATION_MANAGER
Deprecated. |
Fields inherited from class weblogic.apache.xerces.impl.XMLScanner |
DEBUG_ATTR_NORMALIZATION, ENTITY_MANAGER, ERROR_REPORTER, fAmpSymbol, fAposSymbol, fCharRefLiteral, fEncodingSymbol, fEntityDepth, fEntityManager, fEntityScanner, fErrorReporter, fGtSymbol, fLtSymbol, fNotifyCharRefs, fQuotSymbol, fReportEntity, fResourceIdentifier, fScanningAttribute, fStandaloneSymbol, fSymbolTable, fValidation, fVersionSymbol, NOTIFY_CHAR_REFS, SYMBOL_TABLE, VALIDATION |
Constructor Summary | |
XMLDocumentScannerImpl()
Deprecated. Default constructor. |
Method Summary | |
protected XMLDocumentFragmentScannerImpl.Dispatcher |
createContentDispatcher()
Deprecated. Creates a content dispatcher. |
void |
endEntity(String name)
Deprecated. This method notifies the end of an entity. |
String[] |
getRecognizedFeatures()
Deprecated. Returns a list of feature identifiers that are recognized by this component. |
String[] |
getRecognizedProperties()
Deprecated. Returns a list of property identifiers that are recognized by this component. |
protected String |
getScannerStateName(int state)
Deprecated. Returns the scanner state name. |
void |
reset(XMLComponentManager componentManager)
Deprecated. Resets the component. |
protected boolean |
scanDoctypeDecl()
Deprecated. Scans a doctype declaration. |
void |
setFeature(String featureId,
boolean state)
Deprecated. Sets the state of a feature. |
void |
setInputSource(XMLInputSource inputSource)
Deprecated. Sets the input source. |
void |
setProperty(String propertyId,
Object value)
Deprecated. Sets the value of a property. |
void |
startEntity(String name,
XMLResourceIdentifier identifier,
String encoding)
Deprecated. This method notifies of the start of an entity. |
Methods inherited from class weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl |
getDispatcherName, getDocumentHandler, handleEndElement, scanAttribute, scanCDATASection, scanCharReference, scanComment, scanContent, scanDocument, scanEndElement, scanEntityReference, scanPIData, scanStartElement, scanXMLDeclOrTextDecl, setDispatcher, setDocumentHandler, setScannerState |
Methods inherited from class weblogic.apache.xerces.impl.XMLScanner |
getFeature, normalizeWhitespace, reportFatalError, reset, scanAttributeValue, scanCharReferenceValue, scanComment, scanExternalID, scanPI, scanPseudoAttribute, scanPubidLiteral, scanSurrogates, scanXMLDeclOrTextDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final String DTD_SCANNER
protected String fDoctypeName
protected String fDoctypePublicId
protected String fDoctypeSystemId
protected XMLDocumentFragmentScannerImpl.Dispatcher fDTDDispatcher
protected XMLDTDScanner fDTDScanner
protected boolean fLoadExternalDTD
protected XMLDocumentFragmentScannerImpl.Dispatcher fPrologDispatcher
protected boolean fScanningDTD
protected boolean fSeenDoctypeDecl
protected XMLDocumentFragmentScannerImpl.Dispatcher fTrailingMiscDispatcher
protected ValidationManager fValidationManager
protected XMLDocumentFragmentScannerImpl.Dispatcher fXMLDeclDispatcher
protected static final String LOAD_EXTERNAL_DTD
protected static final int SCANNER_STATE_DTD_EXTERNAL
protected static final int SCANNER_STATE_DTD_EXTERNAL_DECLS
protected static final int SCANNER_STATE_DTD_INTERNAL_DECLS
protected static final int SCANNER_STATE_PROLOG
protected static final int SCANNER_STATE_TRAILING_MISC
protected static final int SCANNER_STATE_XML_DECL
protected static final String VALIDATION_MANAGER
Constructor Detail |
public XMLDocumentScannerImpl()
Method Detail |
protected XMLDocumentFragmentScannerImpl.Dispatcher createContentDispatcher()
createContentDispatcher
in class XMLDocumentFragmentScannerImpl
public void endEntity(String name) throws XNIException
endEntity
in interface XMLEntityHandler
endEntity
in class XMLDocumentFragmentScannerImpl
name
- The name of the entity.
XNIException
- Thrown by handler to signal an error.public String[] getRecognizedFeatures()
getRecognizedFeatures
in interface XMLComponent
getRecognizedFeatures
in class XMLDocumentFragmentScannerImpl
public String[] getRecognizedProperties()
getRecognizedProperties
in interface XMLComponent
getRecognizedProperties
in class XMLDocumentFragmentScannerImpl
protected String getScannerStateName(int state)
getScannerStateName
in class XMLDocumentFragmentScannerImpl
public void reset(XMLComponentManager componentManager) throws XMLConfigurationException
reset
in interface XMLComponent
reset
in class XMLDocumentFragmentScannerImpl
componentManager
- The component manager.
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.
XMLConfigurationException
protected boolean scanDoctypeDecl() throws IOException, XNIException
IOException
XNIException
public void setFeature(String featureId, boolean state) throws XMLConfigurationException
Note: Components should silently ignore features that do not affect the operation of the component.
setFeature
in interface XMLComponent
setFeature
in class XMLDocumentFragmentScannerImpl
featureId
- The feature identifier.state
- The state of the feature.
SAXNotRecognizedException
- The component should not throw
this exception.
SAXNotSupportedException
- The component should not throw
this exception.
XMLConfigurationException
public void setInputSource(XMLInputSource inputSource) throws IOException
setInputSource
in interface XMLDocumentScanner
setInputSource
in class XMLDocumentFragmentScannerImpl
inputSource
- The input source.
IOException
- Thrown on i/o error.public void setProperty(String propertyId, Object value) throws XMLConfigurationException
Note: Components should silently ignore properties that do not affect the operation of the component.
setProperty
in interface XMLComponent
setProperty
in class XMLDocumentFragmentScannerImpl
propertyId
- The property identifier.value
- The value of the property.
SAXNotRecognizedException
- The component should not throw
this exception.
SAXNotSupportedException
- The component should not throw
this exception.
XMLConfigurationException
public void startEntity(String name, XMLResourceIdentifier identifier, String encoding) throws XNIException
startEntity
in interface XMLEntityHandler
startEntity
in class XMLDocumentFragmentScannerImpl
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).
XNIException
- Thrown by handler to signal an error.
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs91 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |