If the parser configuration uses a DTD scanner that implements this interface, components should be able to query the scanner instance from the component manager using the following property identifier:
"http://apache.org/xml/properties/internal/dtd-scanner"
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if there is more to scan, false otherwise.True if the scanner should scan the document
completely, pushing all events to the registered
document handler. A value of false indicates that
that the scanner should only scan the next portion
of the document and return. A scanner instance is
permitted to completely scan a document if it does
not support this "pull" scanning model. complete)Scans the external subset of the document. |
| public boolean | Returns: True if there is more to scan, false otherwise.True if the scanner should scan the document
completely, pushing all events to the registered
document handler. A value of false indicates that
that the scanner should only scan the next portion
of the document and return. A scanner instance is
permitted to completely scan a document if it does
not support this "pull" scanning model. complete, boolean True if the document was specified as standalone.
This value is important for verifying certain
well-formedness constraints. standalone, boolean True if the document has an external DTD.
This allows the scanner to properly notify
the handler of the end of the DTD in the
absence of an external subset. hasExternalSubset)Scans the internal subset of the document. |
| public void | |
| public void | |
| public boolean | Returns: true if DTD is skipped, false otherwise.The value of the property javax.xml.stream.supportDTD. supportDTD)Skip the DTD if javax.xml.stream.supportDTD is false. |
| scanDTDExternalSubset | back to summary |
|---|---|
| public boolean scanDTDExternalSubset(boolean complete) throws IOException, XNIException Scans the external subset of the document.
| |
| scanDTDInternalSubset | back to summary |
|---|---|
| public boolean scanDTDInternalSubset(boolean complete, boolean standalone, boolean hasExternalSubset) throws IOException, XNIException Scans the internal subset of the document.
| |
| setInputSource | back to summary |
|---|---|
| public void setInputSource(XMLInputSource inputSource) throws IOException Sets the input source.
| |
| setLimitAnalyzer | back to summary |
|---|---|
| public void setLimitAnalyzer(XMLLimitAnalyzer limitAnalyzer) | |
| skipDTD | back to summary |
|---|---|
| public boolean skipDTD(boolean supportDTD) throws IOException Skip the DTD if javax.xml.stream.supportDTD is false.
| |