com.sun.xml.stream
Class XMLDocumentScannerImpl.XMLDeclDriver

java.lang.Object
  extended by com.sun.xml.stream.XMLDocumentScannerImpl.XMLDeclDriver
All Implemented Interfaces:
XMLDocumentFragmentScannerImpl.Driver
Enclosing class:
XMLDocumentScannerImpl

protected final class XMLDocumentScannerImpl.XMLDeclDriver
extends java.lang.Object
implements XMLDocumentFragmentScannerImpl.Driver

Driver to handle XMLDecl scanning. This class has been modified as per the new design which is more suited to efficiently build pull parser. Lots of performance improvements have been done and the code has been added to support stax functionality/features.

Author:
Neeraj Bajaj, Sun Microsystems., Andy Clark, IBM

Constructor Summary
protected XMLDocumentScannerImpl.XMLDeclDriver()
           
 
Method Summary
 int next()
          Drives the parser to the next state/event on the input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDocumentScannerImpl.XMLDeclDriver

protected XMLDocumentScannerImpl.XMLDeclDriver()
Method Detail

next

public int next()
         throws java.io.IOException,
                org.apache.xerces.xni.XNIException
Description copied from interface: XMLDocumentFragmentScannerImpl.Driver
Drives the parser to the next state/event on the input. Parser is guaranteed to stop at the next state/event. Internally XML document is divided into several states. Each state represents a sections of XML document. When this functions returns normally, it has read the section of XML document and returns the state corresponding to section of document which has been read. For optimizations, a particular driver can read ahead of the section of document (state returned) just read and can maintain a different internal state.

Specified by:
next in interface XMLDocumentFragmentScannerImpl.Driver
Returns:
state representing the section of document just read.
Throws:
java.io.IOException - Thrown on i/o error.
org.apache.xerces.xni.XNIException - Thrown on parse error.


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