Methods Summary |
---|
public java.lang.Object | doMore(boolean parsemore, int appCoroutine)doMore() is a simple API which tells the coroutine parser
that we need more nodes. This is intended to be called from one
of our partner coroutines, and serves both to encapsulate the
communication protocol and to avoid having to explicitly use the
CoroutineParser's coroutine ID number.
|
public java.lang.Object | doParse(org.xml.sax.InputSource source, int appCoroutine)doParse() is a simple API which tells the coroutine parser
to begin reading from a file. This is intended to be called from one
of our partner coroutines, and serves both to encapsulate the
communication protocol and to avoid having to explicitly use the
CoroutineParser's coroutine ID number.
%REVIEW% Can/should this unify with doMore? (if URI hasn't changed,
parse more from same file, else end and restart parsing...?
|
public void | doTerminate(int appCoroutine)doTerminate() is a simple API which tells the coroutine
parser to terminate itself. This is intended to be called from
one of our partner coroutines, and serves both to encapsulate the
communication protocol and to avoid having to explicitly use the
CoroutineParser's coroutine ID number.
Returns only after the CoroutineParser has acknowledged the request.
|
public com.sun.org.apache.xml.internal.dtm.ref.CoroutineManager | getCoroutineManager()
|
public int | getParserCoroutineID()
|
public void | init(com.sun.org.apache.xml.internal.dtm.ref.CoroutineManager co, int appCoroutineID, org.xml.sax.XMLReader parser)Initialize the coroutine parser. Same parameters could be passed
in a non-default constructor, or by using using context ClassLoader
and newInstance and then calling init()
|
public void | setContentHandler(org.xml.sax.ContentHandler handler)Register a SAX-style content handler for us to output to
|
public void | setLexHandler(org.xml.sax.ext.LexicalHandler handler)Register a SAX-style lexical handler for us to output to
Not all parsers support this...
%REVIEW% Not called setLexicalHandler because Xalan uses that name
internally, which causes subclassing nuisances.
|