com.sun.xml.stream
Class XMLDocumentScannerImpl.DTDDriver
java.lang.Object
com.sun.xml.stream.XMLDocumentScannerImpl.DTDDriver
- All Implemented Interfaces:
- XMLDocumentFragmentScannerImpl.Driver
- Enclosing class:
- XMLDocumentScannerImpl
protected final class XMLDocumentScannerImpl.DTDDriver
- extends java.lang.Object
- implements XMLDocumentFragmentScannerImpl.Driver
Driver to handle the internal and external DTD subsets.
- Author:
- Andy Clark, IBM
Method Summary |
boolean |
dispatch(boolean complete)
Dispatch an XML "event". |
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 |
XMLDocumentScannerImpl.DTDDriver
protected XMLDocumentScannerImpl.DTDDriver()
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.
dispatch
public boolean dispatch(boolean complete)
throws java.io.IOException,
org.apache.xerces.xni.XNIException
- Dispatch an XML "event".
- Parameters:
complete
- True if this driver is intended to scan
and dispatch as much as possible.
- Returns:
- True if there is more to dispatch either from this
or a another driver.
- 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.