Class XMLNSDocumentScannerImpl.NSContentDispatcher
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.FragmentContentDispatcher
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.XMLDocumentScannerImpl.ContentDispatcher
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.XMLNSDocumentScannerImpl.NSContentDispatcher
-
- All Implemented Interfaces:
XMLDocumentFragmentScannerImpl.Dispatcher
- Enclosing class:
- XMLNSDocumentScannerImpl
protected final class XMLNSDocumentScannerImpl.NSContentDispatcher extends XMLDocumentScannerImpl.ContentDispatcher
Dispatcher to handle content scanning.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NSContentDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
scanRootElementHook()
Scan for root element hook.-
Methods inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.XMLDocumentScannerImpl.ContentDispatcher
elementDepthIsZeroHook, endOfFileHook, resolveExternalSubsetAndRead, scanForDoctypeHook
-
Methods inherited from class org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.FragmentContentDispatcher
dispatch
-
-
-
-
Method Detail
-
scanRootElementHook
protected boolean scanRootElementHook() throws IOException, XNIException
Scan for root element hook. This method is a hook for subclasses to add code that handles scanning for the root element. This method will also attempt to remove DTD validator from the pipeline, if there is no DTD grammar. If DTD validator is no longer in the pipeline bind namespaces in the scanner.- Overrides:
scanRootElementHook
in classXMLDocumentScannerImpl.ContentDispatcher
- Returns:
- True if the caller should stop and return true which allows the scanner to switch to a new scanning dispatcher. A return value of false indicates that the content dispatcher should continue as normal.
- Throws:
IOException
XNIException
-
-