public class XML11DocumentScannerImpl extends XMLDocumentScannerImpl
This component requires the following features and properties from the component manager that uses it:
XMLDocumentScannerImpl.ContentDispatcher, XMLDocumentScannerImpl.DTDDispatcher, XMLDocumentScannerImpl.PrologDispatcher, XMLDocumentScannerImpl.TrailingMiscDispatcher, XMLDocumentScannerImpl.XMLDeclDispatcherXMLDocumentFragmentScannerImpl.Dispatcher, XMLDocumentFragmentScannerImpl.ElementStack, XMLDocumentFragmentScannerImpl.FragmentContentDispatcherDISALLOW_DOCTYPE_DECL_FEATURE, DTD_SCANNER, fDisallowDoctype, fDoctypeName, fDoctypePublicId, fDoctypeSystemId, fDTDDispatcher, fDTDScanner, fLoadExternalDTD, fNamespaceContext, fPrologDispatcher, fScanningDTD, fSeenDoctypeDecl, fTrailingMiscDispatcher, fValidationManager, fXMLDeclDispatcher, LOAD_EXTERNAL_DTD, NAMESPACE_CONTEXT, SCANNER_STATE_DTD_EXTERNAL, SCANNER_STATE_DTD_EXTERNAL_DECLS, SCANNER_STATE_DTD_INTERNAL_DECLS, SCANNER_STATE_PROLOG, SCANNER_STATE_TRAILING_MISC, SCANNER_STATE_XML_DECL, VALIDATION_MANAGERDEBUG_CONTENT_SCANNING, ENTITY_RESOLVER, fAttributeQName, fAttributes, fContentDispatcher, fCurrentElement, fDispatcher, fDocumentHandler, fElementQName, fElementStack, fEntityStack, fExternalSubsetResolver, fHasExternalDTD, fInScanContent, fIsEntityDeclaredVC, fMarkupDepth, fNotifyBuiltInRefs, fScannerState, fStandalone, fTempString, fTempString2, NAMESPACES, NOTIFY_BUILTIN_REFS, SCANNER_STATE_CDATA, SCANNER_STATE_COMMENT, SCANNER_STATE_CONTENT, SCANNER_STATE_DOCTYPE, SCANNER_STATE_END_OF_INPUT, SCANNER_STATE_PI, SCANNER_STATE_REFERENCE, SCANNER_STATE_ROOT_ELEMENT, SCANNER_STATE_START_OF_MARKUP, SCANNER_STATE_TERMINATED, SCANNER_STATE_TEXT_DECLDEBUG_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 and Description |
|---|
XML11DocumentScannerImpl()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getVersionNotSupportedKey() |
protected boolean |
isInvalid(int value) |
protected boolean |
isInvalidLiteral(int value) |
protected int |
isUnchangedByNormalization(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(XMLString value)
Normalize whitespace in an XMLString converting all whitespace
characters to space characters.
|
protected void |
normalizeWhitespace(XMLString value,
int fromIndex)
Normalize whitespace in an XMLString converting all whitespace
characters to space characters.
|
protected boolean |
scanAttributeValue(XMLString value,
XMLString nonNormalizedValue,
String atName,
boolean checkEntities,
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(XMLString literal)
Scans public ID literal.
|
protected boolean |
versionSupported(String version) |
createContentDispatcher, endEntity, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, getScannerStateName, reset, scanDoctypeDecl, setFeature, setInputSource, setProperty, startEntitygetDispatcherName, getDocumentHandler, handleEndElement, scanAttribute, scanCDATASection, scanCharReference, scanComment, scanDocument, scanEndElement, scanEntityReference, scanPIData, scanStartElement, scanStartElementAfterName, scanStartElementName, scanXMLDeclOrTextDecl, setDispatcher, setDocumentHandler, setScannerStategetFeature, reportFatalError, reset, scanCharReferenceValue, scanComment, scanExternalID, scanPI, scanPseudoAttribute, scanSurrogates, scanXMLDeclOrTextDeclprotected int scanContent()
throws IOException,
XNIException
scanContent in class XMLDocumentFragmentScannerImplIOExceptionXNIExceptionprotected boolean scanAttributeValue(XMLString value, XMLString nonNormalizedValue, String atName, boolean checkEntities, String eleName) throws IOException, 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.IOExceptionXNIExceptionprotected boolean scanPubidLiteral(XMLString literal) throws IOException, XNIException
scanPubidLiteral in class XMLScannerliteral - The string to fill in with the public ID literal.IOExceptionXNIExceptionprotected void normalizeWhitespace(XMLString value)
normalizeWhitespace in class XMLScannerprotected void normalizeWhitespace(XMLString value, int fromIndex)
normalizeWhitespace in class XMLScannerprotected int isUnchangedByNormalization(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(String version)
versionSupported in class XMLScannerprotected String getVersionNotSupportedKey()
getVersionNotSupportedKey in class XMLScannerCopyright © 2017 JBoss by Red Hat. All rights reserved.