com.sun.xml.stream
Class XMLNSDocumentScannerImpl.NSContentDriver

java.lang.Object
  extended by com.sun.xml.stream.XMLDocumentFragmentScannerImpl.FragmentContentDriver
      extended by com.sun.xml.stream.XMLDocumentScannerImpl.ContentDriver
          extended by com.sun.xml.stream.XMLNSDocumentScannerImpl.NSContentDriver
All Implemented Interfaces:
XMLDocumentFragmentScannerImpl.Driver
Enclosing class:
XMLNSDocumentScannerImpl

protected final class XMLNSDocumentScannerImpl.NSContentDriver
extends XMLDocumentScannerImpl.ContentDriver

Driver to handle content scanning.


Constructor Summary
protected XMLNSDocumentScannerImpl.NSContentDriver()
           
 
Method Summary
protected  boolean scanRootElementHook()
          Scan for root element hook.
 
Methods inherited from class com.sun.xml.stream.XMLDocumentScannerImpl.ContentDriver
elementDepthIsZeroHook, endOfFileHook, scanForDoctypeHook
 
Methods inherited from class com.sun.xml.stream.XMLDocumentFragmentScannerImpl.FragmentContentDriver
decideSubState, next
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLNSDocumentScannerImpl.NSContentDriver

protected XMLNSDocumentScannerImpl.NSContentDriver()
Method Detail

scanRootElementHook

protected boolean scanRootElementHook()
                               throws java.io.IOException,
                                      org.apache.xerces.xni.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 class XMLDocumentScannerImpl.ContentDriver
Returns:
True if the caller should stop and return true which allows the scanner to switch to a new scanning driver. A return value of false indicates that the content driver should continue as normal.
Throws:
java.io.IOException
org.apache.xerces.xni.XNIException


Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.