public class EsisParser extends Object implements XMLReader
EsisHandler
.
This is most immediately useful for testing, since it allows us to
control exactly what SAX stream is given to the normalising
functions of EsisHandler
, but it is also
useful for interconverting between the two syntaxes.
This class, like any XMLReader, acts by turning an input source into a sequence of SAX events.
Constructor and Description |
---|
EsisParser() |
Modifier and Type | Method and Description |
---|---|
ContentHandler |
getContentHandler() |
DTDHandler |
getDTDHandler() |
EntityResolver |
getEntityResolver() |
ErrorHandler |
getErrorHandler() |
boolean |
getFeature(String name) |
Object |
getProperty(String name) |
void |
parse(InputSource input)
Reads a SAX stream in a format based on
http://www.jclark.com/sp/sgmlsout.htm, as written by
uk.me.nxg.xoxa.esis . |
void |
parse(String systemId) |
void |
setContentHandler(ContentHandler handler) |
void |
setDTDHandler(DTDHandler handler) |
void |
setEntityResolver(EntityResolver resolver) |
void |
setErrorHandler(ErrorHandler handler) |
void |
setFeature(String name,
boolean value) |
void |
setProperty(String name,
Object value) |
public void parse(InputSource input) throws IOException, SAXException
uk.me.nxg.xoxa.esis
.
The codes that class produces are as below.
Mprefix uri | start prefix mapping | |
mprefix | end prefix mapping | |
Aattname CDATA value | declare attribute | ESIS |
Bnamespace localname CDATA value | declare namespaced attribute | |
(gi | start element | ESIS |
[namespace gi | start namespaced element | |
)gi | end element | ESIS |
]namespace localname | end namespaced element | |
-text | character content | ESIS |
=text | ignorable whitespace | |
?pi data | processing instruction | ESIS |
Xname | skipped entity |