com.sun.xml.stream
Interface XMLDocumentFragmentScannerImpl.Driver
- All Known Implementing Classes:
- XMLDocumentFragmentScannerImpl.FragmentContentDriver, XMLDocumentScannerImpl.ContentDriver, XMLDocumentScannerImpl.DTDDriver, XMLDocumentScannerImpl.PrologDriver, XMLDocumentScannerImpl.TrailingMiscDriver, XMLDocumentScannerImpl.XMLDeclDriver, XMLNSDocumentScannerImpl.NSContentDriver
- Enclosing class:
- XMLDocumentFragmentScannerImpl
protected static 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.
- Author:
- Neeraj Bajaj, Sun Microsystems
Method Summary |
int |
next()
Drives the parser to the next state/event on the input. |
next
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.
- 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.