Sha256: fc63bfbc76e9bc2fd8bbd784182f2522e2f68a1e7879655b2f1c9694ad94d2f4
Contents?: true
Size: 878 Bytes
Versions: 54
Compression:
Stored size: 878 Bytes
Contents
package nokogiri.internals; import org.apache.xerces.parsers.SAXParser; import org.apache.xerces.xni.Augmentations; import org.apache.xerces.xni.XNIException; /** * Extends SAXParser in order to receive xmlDecl events and pass them * on to a handler. * * @author Patrick Mahoney <pat@polycrystal.org> */ public class XmlSaxParser extends SAXParser { protected XmlDeclHandler xmlDeclHandler = null; public XmlSaxParser() { super(); } public void setXmlDeclHandler(XmlDeclHandler xmlDeclHandler) { this.xmlDeclHandler = xmlDeclHandler; } @Override public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException { super.xmlDecl(version, encoding, standalone, augs); if (xmlDeclHandler != null) { xmlDeclHandler.xmlDecl(version, encoding, standalone); } } }
Version data entries
54 entries across 54 versions & 2 rubygems