public class XMLStringSAXHandler extends BasicSAXHandler
A SAX Handler equipped with a XMLScanner
, an XML document
string, and a protected method, runSAXScanner()
, which
uses the scanner to parse the XML string, feeding the resulting
parse events to this handler.
The intention is that a subclass should define parse event
handling methods as required, together with accessor methods for
the data accumulated by those event handling methods.
The subclass constructor should conclude with an invocation
of the runSAXScanner()
method inherited from this class.
Constructor and Description |
---|
XMLStringSAXHandler(java.lang.String xmlkindtag,
CleanerEntityResolver cer,
java.lang.String xml)
Constructs a new handler, with a non-validating parser, for the
given XML document text, with the given XML kind tag for use in
error reporting, and using the given entity resolver during parsing.
|
XMLStringSAXHandler(java.lang.String xmlkindtag,
CleanerEntityResolver cer,
java.lang.String xml,
boolean validate)
Constructs a new handler for the given XML document
text, with the given XML kind tag for use in error reporting,
using the given entity resolver during parsing, and
using the given flag to determine whether or not the handler should
use a validating parser.
|
XMLStringSAXHandler(java.lang.String xmlkindtag,
java.lang.String xml)
Constructs a new handler, with a non-validating parser, for the
given XML document text, with the given XML kind tag for use in
error reporting.
|
XMLStringSAXHandler(java.lang.String xmlkindtag,
java.lang.String xml,
boolean validate)
Constructs a new handler for the given XML document
text, with the given XML kind tag for use in error reporting, and
using the given flag to determine whether or not the handler should
use a validating parser.
|
error, fatalError, resolveEntity, setDocumentLocator, warning
public XMLStringSAXHandler(java.lang.String xmlkindtag, java.lang.String xml) throws XMLScanner.ScanException
XMLScanner.ScanException
public XMLStringSAXHandler(java.lang.String xmlkindtag, java.lang.String xml, boolean validate) throws XMLScanner.ScanException
XMLScanner.ScanException
public XMLStringSAXHandler(java.lang.String xmlkindtag, CleanerEntityResolver cer, java.lang.String xml) throws XMLScanner.ScanException
XMLScanner.ScanException
public XMLStringSAXHandler(java.lang.String xmlkindtag, CleanerEntityResolver cer, java.lang.String xml, boolean validate) throws XMLScanner.ScanException
XMLScanner.ScanException