|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.dtm.ref.IncrementalSAXSource_Xerces
public class 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.
Field Summary | |
---|---|
(package private) java.lang.reflect.Constructor |
fConfigInputSourceCtor
|
(package private) java.lang.reflect.Method |
fConfigParse
|
(package private) java.lang.reflect.Method |
fConfigSetByteStream
|
(package private) java.lang.reflect.Method |
fConfigSetCharStream
|
(package private) java.lang.reflect.Method |
fConfigSetEncoding
|
(package private) java.lang.reflect.Method |
fConfigSetInput
|
(package private) SAXParser |
fIncrementalParser
|
private boolean |
fParseInProgress
|
(package private) java.lang.reflect.Method |
fParseSome
|
(package private) java.lang.reflect.Method |
fParseSomeSetup
|
(package private) java.lang.Object |
fPullParserConfig
|
(package private) java.lang.reflect.Method |
fReset
|
(package private) java.lang.reflect.Method |
fSetInputSource
|
private static java.lang.Object[] |
noparms
|
private static java.lang.Object[] |
parmsfalse
|
Constructor Summary | |
---|---|
IncrementalSAXSource_Xerces()
Create a IncrementalSAXSource_Xerces, and create a SAXParser to go with it. |
|
IncrementalSAXSource_Xerces(SAXParser parser)
Create a IncrementalSAXSource_Xerces wrapped around an existing SAXParser. |
Method Summary | |
---|---|
static IncrementalSAXSource |
createIncrementalSAXSource()
|
static IncrementalSAXSource |
createIncrementalSAXSource(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. |
private boolean |
parseSome()
|
private boolean |
parseSomeSetup(org.xml.sax.InputSource source)
|
void |
setContentHandler(org.xml.sax.ContentHandler handler)
Register a SAX-style content handler for us to output to |
void |
setDTDHandler(org.xml.sax.DTDHandler handler)
Register a SAX-style DTD handler for us to output to |
void |
setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
Register a SAX-style lexical handler for us to output to |
void |
startParse(org.xml.sax.InputSource source)
startParse() is a simple API which tells the IncrementalSAXSource to begin reading a document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.lang.reflect.Method fParseSomeSetup
java.lang.reflect.Method fParseSome
java.lang.Object fPullParserConfig
java.lang.reflect.Method fConfigSetInput
java.lang.reflect.Method fConfigParse
java.lang.reflect.Method fSetInputSource
java.lang.reflect.Constructor fConfigInputSourceCtor
java.lang.reflect.Method fConfigSetByteStream
java.lang.reflect.Method fConfigSetCharStream
java.lang.reflect.Method fConfigSetEncoding
java.lang.reflect.Method fReset
SAXParser fIncrementalParser
private boolean fParseInProgress
private static final java.lang.Object[] noparms
private static final java.lang.Object[] parmsfalse
Constructor Detail |
---|
public IncrementalSAXSource_Xerces() throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
public IncrementalSAXSource_Xerces(SAXParser parser) throws java.lang.NoSuchMethodException
if
- the SAXParser class doesn't support the Xerces
incremental parse operations. In that case, caller should
fall back upon the IncrementalSAXSource_Filter approach.
java.lang.NoSuchMethodException
Method Detail |
---|
public static IncrementalSAXSource createIncrementalSAXSource()
public static IncrementalSAXSource createIncrementalSAXSource(SAXParser parser)
public void setContentHandler(org.xml.sax.ContentHandler handler)
IncrementalSAXSource
setContentHandler
in interface IncrementalSAXSource
public void setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
IncrementalSAXSource
setLexicalHandler
in interface IncrementalSAXSource
public void setDTDHandler(org.xml.sax.DTDHandler handler)
IncrementalSAXSource
setDTDHandler
in interface IncrementalSAXSource
public void startParse(org.xml.sax.InputSource source) throws org.xml.sax.SAXException
startParse
in interface IncrementalSAXSource
org.xml.sax.SAXException
- is parse thread is already in progress
or parsing can not be started.public java.lang.Object deliverMoreNodes(boolean parsemore)
deliverMoreNodes
in interface IncrementalSAXSource
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.
private boolean parseSomeSetup(org.xml.sax.InputSource source) throws org.xml.sax.SAXException, java.io.IOException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.InstantiationException
org.xml.sax.SAXException
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.InstantiationException
private boolean parseSome() throws org.xml.sax.SAXException, java.io.IOException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
org.xml.sax.SAXException
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |