|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.dtm.ref.IncrementalSAXSource_Xerces
IncrementalSAXSource_Xerces takes advantage of the fact that Xerces1 incremental mode is already a coroutine of sorts, and just wraps our IncrementalSAXSource API around it.
Usage example: See main().
Status: Passes simple main() unit-test. NEEDS JAVADOC.
Constructor Summary | |
IncrementalSAXSource_Xerces()
Create a IncrementalSAXSource_Xerces, and create a SAXParser to go with it. |
|
IncrementalSAXSource_Xerces(org.apache.xerces.parsers.SAXParser parser)
Create a IncrementalSAXSource_Xerces wrapped around an existing SAXParser. |
Method Summary | |
static IncrementalSAXSource |
createIncrementalSAXSource()
|
static IncrementalSAXSource |
createIncrementalSAXSource(org.apache.xerces.parsers.SAXParser parser)
|
java.lang.Object |
deliverMoreNodes(boolean parsemore)
deliverMoreNodes() is a simple API which tells the coroutine parser that we need more nodes. |
static void |
main(java.lang.String[] args)
Simple unit test. |
void |
setContentHandler(ContentHandler handler)
|
void |
setDTDHandler(DTDHandler handler)
|
void |
setLexicalHandler(LexicalHandler handler)
|
void |
startParse(InputSource source)
startParse() is a simple API which tells the IncrementalSAXSource to begin reading a document. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public IncrementalSAXSource_Xerces() throws java.lang.NoSuchMethodException
public IncrementalSAXSource_Xerces(org.apache.xerces.parsers.SAXParser parser) throws java.lang.NoSuchMethodException
Method Detail |
public static IncrementalSAXSource createIncrementalSAXSource()
public static IncrementalSAXSource createIncrementalSAXSource(org.apache.xerces.parsers.SAXParser parser)
public void setContentHandler(ContentHandler handler)
public void setLexicalHandler(LexicalHandler handler)
public void setDTDHandler(DTDHandler handler)
public void startParse(InputSource source) throws SAXException
public java.lang.Object deliverMoreNodes(boolean parsemore)
parsemore
- If true, tells the incremental parser to generate
another chunk of output. If false, tells the parser that we're
satisfied and it can terminate parsing of this document.public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |