⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmlfilterbase.java

📁 cwbbs 云网论坛源码
💻 JAVA
字号:
package cn.js.fan.util;import org.xml.sax.Attributes;import org.xml.sax.SAXException;import org.xml.sax.XMLReader;import org.xml.sax.helpers.AttributesImpl;import org.xml.sax.helpers.XMLFilterImpl;class XMLFilterBase extends XMLFilterImpl{                    public XMLFilterBase()    {    }        public XMLFilterBase(XMLReader parent)    {        super(parent);    }                    public void startElement (String uri, String localName) throws SAXException    {        startElement(uri, localName, "", EMPTY_ATTS);    }        public void startElement (String localName) throws SAXException    {        startElement("", localName, "", EMPTY_ATTS);    }        public void endElement (String uri, String localName) throws SAXException    {        endElement(uri, localName, "");    }        public void endElement (String localName) throws SAXException    {        endElement("", localName, "");    }        public void emptyElement (String uri, String localName, String qName,            Attributes atts) throws SAXException    {        startElement(uri, localName, qName, atts);        endElement(uri, localName, qName);    }         public void emptyElement (String uri, String localName) throws SAXException    {        emptyElement(uri, localName, "", EMPTY_ATTS);    }        public void emptyElement (String localName) throws SAXException    {        emptyElement("", localName, "", EMPTY_ATTS);    }        public void dataElement (String uri, String localName, String qName,            Attributes atts, String content) throws SAXException    {        startElement(uri, localName, qName, atts);        characters(content);        endElement(uri, localName, qName);    }        public void dataElement (String uri, String localName, String content)            throws SAXException    {        dataElement(uri, localName, "", EMPTY_ATTS, content);    }        public void dataElement (String localName, String content)            throws SAXException    {        dataElement("", localName, "", EMPTY_ATTS, content);    }        public void characters (String data) throws SAXException    {        char ch[] = data.toCharArray();        characters(ch, 0, ch.length);    }                protected static final Attributes EMPTY_ATTS = new AttributesImpl();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -