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.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Constructor | |
| pack-priv Method | |
| pack-priv Method | |
| pack-priv Method | |
| pack-priv Method | |
| pack-priv Method | |
| pack-priv SAXParser | fIncrementalParser
References Deprecated
SAXParser is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private boolean | |
| pack-priv Method | |
| pack-priv Method | |
| pack-priv Object | |
| pack-priv Method | |
| pack-priv Method | |
| private static final Object[] | |
| private static final Object[] |
| Access | Constructor and Description |
|---|---|
| public | IncrementalSAXSource_Xerces()
Create a IncrementalSAXSource_Xerces, and create a SAXParser to go with it. |
| public | IncrementalSAXSource_Xerces(SAXParser parser)
References Deprecated
SAXParser is deprecated or references (maybe indirectly) at least one deprecated element.
Create a IncrementalSAXSource_Xerces wrapped around an existing SAXParser. |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static IncrementalSAXSource | |
| public static IncrementalSAXSource | createIncrementalSAXSource(SAXParser parser)
References Deprecated
SAXParser is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public Object | Returns: Boolean.TRUE if the CoroutineParser believes more data may be available for further parsing. Boolean.FALSE if parsing ran to completion. Exception if the parser objected for some reason.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. parsemore)Implements com. deliverMoreNodes() is a simple API which tells the coroutine parser that we need more nodes. |
| private boolean | |
| private boolean | |
| public void | setContentHandler(ContentHandler handler)
Implements com. Register a SAX-style content handler for us to output to |
| public void | setDTDHandler(DTDHandler handler)
Implements com. Register a SAX-style DTD handler for us to output to |
| public void | setLexicalHandler(LexicalHandler handler)
Implements com. Register a SAX-style lexical handler for us to output to |
| public void | startParse(InputSource source)
Implements com. startParse() is a simple API which tells the IncrementalSAXSource to begin reading a document. |
| fConfigInputSourceCtor | back to summary |
|---|---|
| pack-priv Constructor<?> fConfigInputSourceCtor | |
| fConfigParse | back to summary |
|---|---|
| pack-priv Method fConfigParse | |
| fConfigSetByteStream | back to summary |
|---|---|
| pack-priv Method fConfigSetByteStream | |
| fConfigSetCharStream | back to summary |
|---|---|
| pack-priv Method fConfigSetCharStream | |
| fConfigSetEncoding | back to summary |
|---|---|
| pack-priv Method fConfigSetEncoding | |
| fConfigSetInput | back to summary |
|---|---|
| pack-priv Method fConfigSetInput | |
| fIncrementalParser | back to summary |
|---|---|
| pack-priv SAXParser fIncrementalParser
References Deprecated
See corresponding docs for further information. | |
| fParseInProgress | back to summary |
|---|---|
| private boolean fParseInProgress | |
| fParseSome | back to summary |
|---|---|
| pack-priv Method fParseSome | |
| fParseSomeSetup | back to summary |
|---|---|
| pack-priv Method fParseSomeSetup | |
| fPullParserConfig | back to summary |
|---|---|
| pack-priv Object fPullParserConfig | |
| fReset | back to summary |
|---|---|
| pack-priv Method fReset | |
| fSetInputSource | back to summary |
|---|---|
| pack-priv Method fSetInputSource | |
| noparms | back to summary |
|---|---|
| private static final Object[] noparms | |
| parmsfalse | back to summary |
|---|---|
| private static final Object[] parmsfalse | |
| IncrementalSAXSource_Xerces | back to summary |
|---|---|
| public IncrementalSAXSource_Xerces() throws NoSuchMethodException Create a IncrementalSAXSource_Xerces, and create a SAXParser to go with it. Xerces2 incremental parsing is only supported if this constructor is used, due to limitations in the Xerces2 API (as of Beta 3). If you don't like that restriction, tell the Xerces folks that there should be a simpler way to request incremental SAX parsing. | |
| IncrementalSAXSource_Xerces | back to summary |
|---|---|
| public IncrementalSAXSource_Xerces(SAXParser parser) throws NoSuchMethodException
References Deprecated
See corresponding docs for further information. Create a IncrementalSAXSource_Xerces wrapped around an existing SAXParser. Currently this works only for recent releases of Xerces-1. Xerces-2 incremental is currently possible only if we are allowed to create the parser instance, due to limitations in the API exposed by Xerces-2 Beta 3; see the no-args constructor for that code.
| |
| _main | back to summary |
|---|---|
| public static void _main(String[] args)
Deprecated
Simple unit test. Attempt coroutine parsing of document indicated by first argument (as a URI), report progress.
| |
| createIncrementalSAXSource | back to summary |
|---|---|
| public static IncrementalSAXSource createIncrementalSAXSource() | |
| createIncrementalSAXSource | back to summary |
|---|---|
| public static IncrementalSAXSource createIncrementalSAXSource(SAXParser parser)
References Deprecated
See corresponding docs for further information. | |
| deliverMoreNodes | back to summary |
|---|---|
| public Object deliverMoreNodes(boolean parsemore) Implements com. deliverMoreNodes() 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 routines, and serves to encapsulate the details of how incremental parsing has been achieved.
| |
| parseSome | back to summary |
|---|---|
| private boolean parseSome() throws SAXException, IOException, IllegalAccessException, InvocationTargetException | |
| parseSomeSetup | back to summary |
|---|---|
| private boolean parseSomeSetup(InputSource source) throws SAXException, IOException, IllegalAccessException, InvocationTargetException, InstantiationException | |
| setContentHandler | back to summary |
|---|---|
| public void setContentHandler(ContentHandler handler) Implements com. Doc from com. Register a SAX-style content handler for us to output to | |
| setDTDHandler | back to summary |
|---|---|
| public void setDTDHandler(DTDHandler handler) Implements com. Doc from com. Register a SAX-style DTD handler for us to output to | |
| setLexicalHandler | back to summary |
|---|---|
| public void setLexicalHandler(LexicalHandler handler) Implements com. Doc from com. Register a SAX-style lexical handler for us to output to | |
| startParse | back to summary |
|---|---|
| public void startParse(InputSource source) throws SAXException Implements com. startParse() is a simple API which tells the IncrementalSAXSource to begin reading a document.
| |