public class SaxyParser extends SAXParser implements XMLReader
Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_EXPANSION_PROPERTY
Parser property to enable entity expansion.
|
static String |
STRICT_PROPERTY
Parser property to enable strict parsing mode.
|
Constructor and Description |
---|
SaxyParser() |
public static final String ENTITY_EXPANSION_PROPERTY
http://hairyfatguy.com/sax/properties/entity-expansionFalse by default.
public static final String STRICT_PROPERTY
http://hairyfatguy.com/sax/properties/strictFalse by default.
public SaxyParser()
public SaxyParser setLenientHTMLParsing(boolean inValue)
public SaxyParser setLenientHTMLEmptyTags(Collection<String> inEmptyTags)
public Doctype getDoctype()
public Parser getParser() throws SAXException
getParser
in class SAXParser
SAXException
public XMLReader getXMLReader()
getXMLReader
in class SAXParser
public boolean isNamespaceAware()
isNamespaceAware
in class SAXParser
public boolean isValidating()
isValidating
in class SAXParser
public void setProperty(String inName, Object inValue) throws SAXNotRecognizedException
setProperty
in interface XMLReader
setProperty
in class SAXParser
SAXNotRecognizedException
public Object getProperty(String inName) throws SAXNotRecognizedException
getProperty
in interface XMLReader
getProperty
in class SAXParser
SAXNotRecognizedException
public ContentHandler getContentHandler()
getContentHandler
in interface XMLReader
public void setContentHandler(ContentHandler handler)
setContentHandler
in interface XMLReader
public DTDHandler getDTDHandler()
getDTDHandler
in interface XMLReader
public void setDTDHandler(DTDHandler handler)
setDTDHandler
in interface XMLReader
public ErrorHandler getErrorHandler()
getErrorHandler
in interface XMLReader
public void setErrorHandler(ErrorHandler handler)
setErrorHandler
in interface XMLReader
public EntityResolver getEntityResolver()
getEntityResolver
in interface XMLReader
public void setEntityResolver(EntityResolver resolver)
setEntityResolver
in interface XMLReader
public void setFeature(String inName, boolean inValue) throws SAXNotRecognizedException
setFeature
in interface XMLReader
SAXNotRecognizedException
public boolean getFeature(String inName) throws SAXNotRecognizedException
getFeature
in interface XMLReader
SAXNotRecognizedException
public LexicalHandler getLexicalHandler()
public void setLexicalHandler(LexicalHandler handler)
public void parse(String inSystemId) throws SAXException, IOException
parse
in interface XMLReader
SAXException
IOException
public XMLNamespace getCurrentDefaultNamespace()
public void parse(InputSource source) throws SAXException, IOException
parse
in interface XMLReader
SAXException
IOException