| |
|
| java.lang.Object com.sun.xml.stream.XMLScanner com.sun.xml.stream.XMLDocumentFragmentScannerImpl com.sun.xml.stream.XMLDocumentScannerImpl
All known Subclasses: com.sun.xml.stream.XMLNSDocumentScannerImpl,
XMLDocumentScannerImpl | public class XMLDocumentScannerImpl extends XMLDocumentFragmentScannerImpl (Code) | | This class is responsible for scanning XML document structure
and content.
This class has been modified as per the new design which is more suited to
efficiently build pull parser. Lot of improvements have been done and
the code has been added to support stax functionality/features.
author: Neeraj Bajaj, Sun Microsystems author: K.Venugopal, Sun Microsystems author: Glenn Marcy, IBM author: Andy Clark, IBM author: Arnaud Le Hors, IBM author: Eric Ye, IBM author: Sunitha Reddy, Sun Microsystems version: $Id: XMLDocumentScannerImpl.java,v 1.9 2007/03/16 14:48:44 spericas Exp $ |
Inner Class :final protected class XMLDeclDriver implements Driver | |
Inner Class :final protected class PrologDriver implements Driver | |
Inner Class :final protected class DTDDriver implements Driver | |
Inner Class :protected class ContentDriver extends FragmentContentDriver | |
Inner Class :final protected class TrailingMiscDriver implements Driver | |
COMMENTSTRING | final public static char[] COMMENTSTRING(Code) | | |
DISALLOW_DOCTYPE_DECL_FEATURE | final protected static String DISALLOW_DOCTYPE_DECL_FEATURE(Code) | | Feature identifier: load external DTD.
|
DOCTYPE | final public static char[] DOCTYPE(Code) | | |
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.
|
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_NO_SUCH_ELEMENT_EXCEPTION | final protected static int SCANNER_STATE_NO_SUCH_ELEMENT_EXCEPTION(Code) | | Scanner state: NO MORE ELEMENTS.
|
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) | | |
fBindNamespaces | protected boolean fBindNamespaces(Code) | | |
fDTDDriver | protected Driver fDTDDriver(Code) | | DTD driver.
|
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.
|
fEndOfDocument | protected boolean fEndOfDocument(Code) | | |
fEndPos | protected int fEndPos(Code) | | |
fLoadExternalDTD | protected boolean fLoadExternalDTD(Code) | | Load external DTD.
|
fPrologDriver | protected Driver fPrologDriver(Code) | | Prolog driver.
|
fReadingAttributes | protected boolean fReadingAttributes(Code) | | |
fReadingDTD | protected boolean fReadingDTD(Code) | | |
fScanEndElement | protected boolean fScanEndElement(Code) | | |
fScannerBufferlistener | protected XMLBufferListenerImpl fScannerBufferlistener(Code) | | |
fScannerLastState | protected int fScannerLastState(Code) | | |
fSeenDoctypeDecl | protected boolean fSeenDoctypeDecl(Code) | | Seen doctype declaration.
|
fSeenInternalSubset | protected boolean fSeenInternalSubset(Code) | | |
fStartPos | protected int fStartPos(Code) | | |
fTrailingMiscDriver | protected Driver fTrailingMiscDriver(Code) | | Trailing miscellaneous section driver.
|
fXMLDeclDriver | protected Driver fXMLDeclDriver(Code) | | XML declaration driver.
|
XMLDocumentScannerImpl | public XMLDocumentScannerImpl()(Code) | | Default constructor.
|
createContentDriver | protected Driver createContentDriver()(Code) | | Creates a content driver.
|
endEntity | public void endEntity(String name) throws IOException, 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.
|
getScannetState | public int getScannetState()(Code) | | return the state of the scanner
|
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) 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 com.sun.xml.stream.XMLDocumentFragmentScannerImpl | void addElement(String rawname)(Code)(Java Doc) boolean canStore(short depth, short column)(Code)(Java Doc) protected Driver createContentDriver()(Code)(Java Doc) public void endEntity(String name) throws IOException, XNIException(Code)(Java Doc) public XMLAttributesIteratorImpl getAttributeIterator()(Code)(Java Doc) public XMLString getCharacterData()(Code)(Java Doc) public String getComment()(Code)(Java Doc) public XMLDocumentHandler getDocumentHandler()(Code)(Java Doc) public String getDriverName(Driver driver)(Code)(Java Doc) short getElementPointer(short depth, short column)(Code)(Java Doc) public String getEntityName()(Code)(Java Doc) public Boolean getFeatureDefault(String featureId)(Code)(Java Doc) public XMLStringBuffer getPIData()(Code)(Java Doc) public String getPITarget()(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) public boolean hasAttributes()(Code)(Java Doc) public boolean isStandAlone()(Code)(Java Doc) public int next() throws IOException, XNIException(Code)(Java Doc) static void pr(String str)(Code)(Java Doc) public void reset(XMLComponentManager componentManager) throws XMLConfigurationException(Code)(Java Doc) public void reset(PropertyManager propertyManager)(Code)(Java Doc) void resetPointer(short depth, short column)(Code)(Java Doc) protected void scanAttribute(XMLAttributes attributes) throws IOException, XNIException(Code)(Java Doc) protected boolean scanCDATASection(XMLStringBuffer contentBuffer, 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(XMLStringBuffer content) 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(XMLStringBuffer content) throws IOException, XNIException(Code)(Java Doc) protected void scanPIData(String target, XMLStringBuffer data) throws IOException, XNIException(Code)(Java Doc) protected boolean scanStartElement() throws IOException, XNIException(Code)(Java Doc) protected void scanXMLDeclOrTextDecl(boolean scanningTextDecl) throws IOException, XNIException(Code)(Java Doc) public void setDocumentHandler(XMLDocumentHandler documentHandler)(Code)(Java Doc) final protected void setDriver(Driver driver)(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) protected boolean skipElement() throws IOException(Code)(Java Doc) boolean skipElement(short column) throws IOException(Code)(Java Doc) boolean skipFromTheBuffer(String rawname) throws IOException(Code)(Java Doc) boolean skipQElement(QName name) throws IOException(Code)(Java Doc) boolean skipQElement(String rawname) throws IOException(Code)(Java Doc) public void startEntity(String name, XMLResourceIdentifier identifier, String encoding) throws XNIException(Code)(Java Doc) short storePointerForADepth(short elementPointer)(Code)(Java Doc)
|
Methods inherited from com.sun.xml.stream.XMLScanner | public void endEntity(String name) throws IOException, XNIException(Code)(Java Doc) public boolean getFeature(String featureId) throws XMLConfigurationException(Code)(Java Doc) XMLStringBuffer getStringBuffer()(Code)(Java Doc) protected static boolean isInvalid(int value)(Code)(Java Doc) protected static boolean isInvalidLiteral(int value)(Code)(Java Doc) protected static boolean isValidNCName(int value)(Code)(Java Doc) protected static boolean isValidNameChar(int value)(Code)(Java Doc) protected static boolean isValidNameStartChar(int value)(Code)(Java Doc) protected void normalizeWhitespace(XMLString value)(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) public void reset(PropertyManager propertyManager)(Code)(Java Doc) protected void scanAttributeValue(XMLString value, XMLString nonNormalizedValue, String atName, XMLAttributes attributes, int attrIndex, boolean checkEntities) 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(XMLStringBuffer data) throws IOException, XNIException(Code)(Java Doc) protected void scanPIData(String target, XMLStringBuffer 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) protected void setPropertyManager(PropertyManager propertyManager)(Code)(Java Doc) public void startEntity(String name, XMLResourceIdentifier identifier, String encoding) throws XNIException(Code)(Java Doc) protected boolean versionSupported(String version)(Code)(Java Doc)
|
|
|
|