|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.xml.stream.XMLDocumentFragmentScannerImpl.FragmentContentDriver
protected class XMLDocumentFragmentScannerImpl.FragmentContentDriver
Driver to handle content scanning. This driver is capable of reading the fragment of XML document. When it has finished reading fragment of XML documents, it can pass the job of reading to another driver. This class has been modified as per the new design which is more suited to efficiently build pull parser. Lot of performance improvements have been done and the code has been added to support stax functionality/features.
| Constructor Summary | |
|---|---|
protected |
XMLDocumentFragmentScannerImpl.FragmentContentDriver()
|
| Method Summary | |
|---|---|
void |
decideSubState()
SCANNER_STATE_CONTENT and SCANNER_STATE_START_OF_MARKUP are two super states of the parser. |
protected boolean |
elementDepthIsZeroHook()
Element depth iz zero. |
protected void |
endOfFileHook(java.io.EOFException e)
End of file hook. |
int |
next()
Drives the parser to the next state/event on the input. |
protected boolean |
scanForDoctypeHook()
Scan for DOCTYPE hook. |
protected boolean |
scanRootElementHook()
Scan for root element hook. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected XMLDocumentFragmentScannerImpl.FragmentContentDriver()
| Method Detail |
|---|
public void decideSubState()
throws java.io.IOException
java.io.IOException
public int next()
throws java.io.IOException,
org.apache.xerces.xni.XNIException
next in interface XMLDocumentFragmentScannerImpl.Driverjava.io.IOException - Thrown on i/o error.
org.apache.xerces.xni.XNIException - Thrown on parse error.
protected boolean scanForDoctypeHook()
throws java.io.IOException,
org.apache.xerces.xni.XNIException
java.io.IOException
org.apache.xerces.xni.XNIException
protected boolean elementDepthIsZeroHook()
throws java.io.IOException,
org.apache.xerces.xni.XNIException
java.io.IOException
org.apache.xerces.xni.XNIException
protected boolean scanRootElementHook()
throws java.io.IOException,
org.apache.xerces.xni.XNIException
java.io.IOException
org.apache.xerces.xni.XNIException
protected void endOfFileHook(java.io.EOFException e)
throws java.io.IOException,
org.apache.xerces.xni.XNIException
java.io.IOException
org.apache.xerces.xni.XNIException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||