|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.xerces.impl.XMLScanner
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
org.apache.xerces.impl.XMLDocumentScannerImpl
org.apache.xerces.impl.XML11DocumentScannerImpl
public class XML11DocumentScannerImpl
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 |
|---|
| Nested classes/interfaces inherited from class org.apache.xerces.impl.XMLDocumentScannerImpl |
|---|
XMLDocumentScannerImpl.ContentDispatcher, XMLDocumentScannerImpl.DTDDispatcher, XMLDocumentScannerImpl.PrologDispatcher, XMLDocumentScannerImpl.TrailingMiscDispatcher, XMLDocumentScannerImpl.XMLDeclDispatcher |
| Nested classes/interfaces inherited from class org.apache.xerces.impl.XMLDocumentFragmentScannerImpl |
|---|
XMLDocumentFragmentScannerImpl.Dispatcher, XMLDocumentFragmentScannerImpl.ElementStack, XMLDocumentFragmentScannerImpl.FragmentContentDispatcher |
| Field Summary |
|---|
| Fields inherited from class org.apache.xerces.impl.XMLScanner |
|---|
DEBUG_ATTR_NORMALIZATION, ENTITY_MANAGER, ERROR_REPORTER, fAmpSymbol, fAposSymbol, fCharRefLiteral, fEncodingSymbol, fEntityDepth, fEntityManager, fEntityScanner, fErrorReporter, fGtSymbol, fLtSymbol, fNamespaces, fNotifyCharRefs, fParserSettings, fQuotSymbol, fReportEntity, fResourceIdentifier, fScanningAttribute, fStandaloneSymbol, fSymbolTable, fValidation, fVersionSymbol, NOTIFY_CHAR_REFS, PARSER_SETTINGS, SYMBOL_TABLE, VALIDATION |
| Constructor Summary | |
|---|---|
XML11DocumentScannerImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
getVersionNotSupportedKey()
|
protected boolean |
isInvalid(int value)
|
protected boolean |
isInvalidLiteral(int value)
|
protected int |
isUnchangedByNormalization(org.apache.xerces.xni.XMLString value)
Checks whether this string would be unchanged by normalization. |
protected boolean |
isValidNameChar(int value)
|
protected boolean |
isValidNameStartChar(int value)
|
protected boolean |
isValidNameStartHighSurrogate(int value)
|
protected boolean |
isValidNCName(int value)
|
protected void |
normalizeWhitespace(org.apache.xerces.xni.XMLString value)
Normalize whitespace in an XMLString converting all whitespace characters to space characters. |
protected void |
normalizeWhitespace(org.apache.xerces.xni.XMLString value,
int fromIndex)
Normalize whitespace in an XMLString converting all whitespace characters to space characters. |
protected boolean |
scanAttributeValue(org.apache.xerces.xni.XMLString value,
org.apache.xerces.xni.XMLString nonNormalizedValue,
java.lang.String atName,
boolean checkEntities,
java.lang.String eleName)
Scans an attribute value and normalizes whitespace converting all whitespace characters to space characters. |
protected int |
scanContent()
Scans element content. |
protected boolean |
scanPubidLiteral(org.apache.xerces.xni.XMLString literal)
Scans public ID literal. |
protected boolean |
versionSupported(java.lang.String version)
|
| Methods inherited from class org.apache.xerces.impl.XMLDocumentScannerImpl |
|---|
createContentDispatcher, endEntity, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, getScannerStateName, reset, scanDoctypeDecl, setFeature, setInputSource, setProperty, startEntity |
| Methods inherited from class org.apache.xerces.impl.XMLDocumentFragmentScannerImpl |
|---|
getDispatcherName, getDocumentHandler, handleEndElement, scanAttribute, scanCDATASection, scanCharReference, scanComment, scanDocument, scanEndElement, scanEntityReference, scanPIData, scanStartElement, scanStartElementAfterName, scanStartElementName, scanXMLDeclOrTextDecl, setDispatcher, setDocumentHandler, setScannerState |
| Methods inherited from class org.apache.xerces.impl.XMLScanner |
|---|
getFeature, reportFatalError, reset, scanCharReferenceValue, scanComment, scanExternalID, scanPI, scanPseudoAttribute, scanSurrogates, scanXMLDeclOrTextDecl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XML11DocumentScannerImpl()
| Method Detail |
|---|
protected int scanContent()
throws java.io.IOException,
org.apache.xerces.xni.XNIException
scanContent in class XMLDocumentFragmentScannerImpljava.io.IOException
org.apache.xerces.xni.XNIException
protected boolean scanAttributeValue(org.apache.xerces.xni.XMLString value,
org.apache.xerces.xni.XMLString nonNormalizedValue,
java.lang.String atName,
boolean checkEntities,
java.lang.String eleName)
throws java.io.IOException,
org.apache.xerces.xni.XNIException
scanAttributeValue in class XMLScannervalue - The XMLString to fill in with the value.nonNormalizedValue - The XMLString to fill in with the
non-normalized value.atName - The name of the attribute being parsed (for error msgs).checkEntities - true if undeclared entities should be reported as VC violation,
false if undeclared entities should be reported as WFC violation.eleName - The name of element to which this attribute belongs.
java.io.IOException
org.apache.xerces.xni.XNIException
protected boolean scanPubidLiteral(org.apache.xerces.xni.XMLString literal)
throws java.io.IOException,
org.apache.xerces.xni.XNIException
scanPubidLiteral in class XMLScannerliteral - The string to fill in with the public ID literal.
java.io.IOException
org.apache.xerces.xni.XNIExceptionprotected void normalizeWhitespace(org.apache.xerces.xni.XMLString value)
normalizeWhitespace in class XMLScanner
protected void normalizeWhitespace(org.apache.xerces.xni.XMLString value,
int fromIndex)
normalizeWhitespace in class XMLScannerprotected int isUnchangedByNormalization(org.apache.xerces.xni.XMLString value)
isUnchangedByNormalization in class XMLScannerprotected boolean isInvalid(int value)
isInvalid in class XMLScannerprotected boolean isInvalidLiteral(int value)
isInvalidLiteral in class XMLScannerprotected boolean isValidNameChar(int value)
isValidNameChar in class XMLScannerprotected boolean isValidNameStartChar(int value)
isValidNameStartChar in class XMLScannerprotected boolean isValidNCName(int value)
isValidNCName in class XMLScannerprotected boolean isValidNameStartHighSurrogate(int value)
isValidNameStartHighSurrogate in class XMLScannerprotected boolean versionSupported(java.lang.String version)
versionSupported in class XMLScannerprotected java.lang.String getVersionNotSupportedKey()
getVersionNotSupportedKey in class XMLScanner
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||