com.sun.xml.stream
Class XMLDocumentScannerImpl.PrologDriver

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

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

Driver to handle prolog scanning.

Author:
Andy Clark, IBM

Constructor Summary
protected XMLDocumentScannerImpl.PrologDriver()
           
 
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.PrologDriver

protected XMLDocumentScannerImpl.PrologDriver()
Method Detail

next

public int next()
         throws java.io.IOException,
                org.apache.xerces.xni.XNIException
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.