亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dataunformatfilter.java

?? openlogic-jdom-1.1-all-src-1.zip 可以用于操作xml文件
?? JAVA
字號:
/*--  Copyright (C) 2000 Brett McLaughlin & Jason Hunter. All rights reserved.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  1. Redistributions of source code must retain the above copyright    notice, this list of conditions, and the following disclaimer.  2. Redistributions in binary form must reproduce the above copyright    notice, this list of conditions, and the disclaimer that follows     these conditions in the documentation and/or other materials     provided with the distribution. 3. The name "JDOM" must not be used to endorse or promote products    derived from this software without prior written permission.  For    written permission, please contact license@jdom.org.  4. Products derived from this software may not be called "JDOM", nor    may "JDOM" appear in their name, without prior written permission    from the JDOM Project Management (pm@jdom.org).  In addition, we request (but do not require) that you include in the  end-user documentation provided with the redistribution and/or in the  software itself an acknowledgement equivalent to the following:     "This product includes software developed by the      JDOM Project (http://www.jdom.org/)." Alternatively, the acknowledgment may be graphical using the logos  available at http://www.jdom.org/images/logos. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE JDOM AUTHORS OR THE PROJECT CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. This software consists of voluntary contributions made by many  individuals on behalf of the JDOM Project and was originally  created by Brett McLaughlin <brett@jdom.org> and  Jason Hunter <jhunter@jdom.org>.  For more information on the  JDOM Project, please see <http://www.jdom.org/>.  */package sax;import java.util.Stack;import org.xml.sax.Attributes;import org.xml.sax.SAXException;import org.xml.sax.XMLReader;/** * Filter for removing formatting from data- or field-oriented XML.  * * <i>Code and comments adapted from DataWriter-0.2, written * by David Megginson and released into the public domain, * without warranty.</i> * * <p>This filter removes leading and trailing whitespace from * field-oriented XML without mixed content. Note that this class will * likely not yield appropriate results for document-oriented XML like * XHTML pages, which mix character data and elements together.</p> * * @see DataFormatFilter */public class DataUnformatFilter extends XMLFilterBase{                ////////////////////////////////////////////////////////////////////    // Constructors.    ////////////////////////////////////////////////////////////////////    /**     * Create a new filter.     */    public DataUnformatFilter()    {    }    /**     * Create a new filter.     *     * <p>Use the XMLReader provided as the source of events.</p>     *     * @param xmlreader The parent in the filter chain.     */    public DataUnformatFilter(XMLReader xmlreader)    {        super(xmlreader);    }    ////////////////////////////////////////////////////////////////////    // Public methods.    ////////////////////////////////////////////////////////////////////    /**     * Reset the filter so that it can be reused.     *     * <p>This method is especially useful if the filter failed     * with an exception the last time through.</p>     */    public void reset ()    {        state = SEEN_NOTHING;        stateStack = new Stack();        whitespace = new StringBuffer();    }    ////////////////////////////////////////////////////////////////////    // Methods from org.xml.sax.ContentHandler.    ////////////////////////////////////////////////////////////////////        /**     * Filter a start document event.      *     * <p>Reset state and pass the event on for further processing.</p>     *     * @exception org.xml.sax.SAXException If a filter     *            further down the chain raises an exception.     * @see org.xml.sax.ContentHandler#startDocument     */    public void startDocument ()    throws SAXException    {        reset();        super.startDocument();    }    /**     * Filter a start element event.     *     * @param uri The element's Namespace URI.     * @param localName The element's local name.     * @param qName The element's qualified (prefixed) name.     * @param atts The element's attribute list.     * @exception org.xml.sax.SAXException If a filter     *            further down the chain raises an exception.     * @see org.xml.sax.ContentHandler#startElement     */    public void startElement (String uri, String localName,                              String qName, Attributes atts)    throws SAXException    {        clearWhitespace();        stateStack.push(SEEN_ELEMENT);        state = SEEN_NOTHING;        super.startElement(uri, localName, qName, atts);    }    /**     * Filter an end element event.     *     * @param uri The element's Namespace URI.     * @param localName The element's local name.     * @param qName The element's qualified (prefixed) name.     * @exception org.xml.sax.SAXException If a filter     *            further down the chain raises an exception.     * @see org.xml.sax.ContentHandler#endElement     */    public void endElement (String uri, String localName, String qName)    throws SAXException    {        if (state == SEEN_ELEMENT) {            clearWhitespace();        } else {            emitWhitespace();        }        state = stateStack.pop();        super.endElement(uri, localName, qName);    }    /**     * Filter a character data event.     *     * @param ch The characters to write.     * @param start The starting position in the array.     * @param length The number of characters to use.     * @exception org.xml.sax.SAXException If a filter     *            further down the chain raises an exception.     * @see org.xml.sax.ContentHandler#characters     */    public void characters (char ch[], int start, int length)    throws SAXException    {        if (state != SEEN_DATA) {            /* Look for non-whitespace. */            int end = start + length;            while (end-- > start) {                if (!isXMLWhitespace(ch[end]))                    break;            }            /*             * If all the characters are whitespace, save them for later.             * If we've got some data, emit any saved whitespace and update             * our state to show we've seen data.             */            if (end < start) {                saveWhitespace(ch, start, length);            } else {                state = SEEN_DATA;                emitWhitespace();            }        }        /* Pass on everything inside a data field. */                if (state == SEEN_DATA) {            super.characters(ch, start, length);        }    }             /**      * Filter an ignorable whitespace event.      *      * @param ch The array of characters to write.      * @param start The starting position in the array.      * @param length The number of characters to write.      * @exception org.xml.sax.SAXException If a filter      *            further down the chain raises an exception.      * @see org.xml.sax.ContentHandler#ignorableWhitespace      */    public void ignorableWhitespace (char ch[], int start, int length)    throws SAXException    {        emitWhitespace();        // ignore    }        /**     * Filter a processing instruction event.     *     * @param target The PI target.     * @param data The PI data.     * @exception org.xml.sax.SAXException If a filter     *            further down the chain raises an exception.     * @see org.xml.sax.ContentHandler#processingInstruction     */    public void processingInstruction (String target, String data)    throws SAXException    {        emitWhitespace();        super.processingInstruction(target, data);    }    ////////////////////////////////////////////////////////////////////    // Internal methods.    ////////////////////////////////////////////////////////////////////    /**     * Saves trailing whitespace.     */    protected void saveWhitespace (char[] ch, int start, int length) {        whitespace.append(ch, start, length);    }    /**     * Passes saved whitespace down the filter chain.     */    protected void emitWhitespace ()    throws SAXException    {        char[] data = new char[whitespace.length()];        whitespace.getChars(0, data.length, data, 0);        whitespace.setLength(0);        super.characters(data, 0, data.length);    }    /**     * Discards saved whitespace.      */    protected void clearWhitespace () {        whitespace.setLength(0);    }    /**     * Returns <var>true</var> if character is XML whitespace.     */    private boolean isXMLWhitespace (char c)    {        return c == ' ' || c == '\t' || c == '\r' || c == '\n';    }    ////////////////////////////////////////////////////////////////////    // Constants.    ////////////////////////////////////////////////////////////////////    private static final Object SEEN_NOTHING = new Object();    private static final Object SEEN_ELEMENT = new Object();    private static final Object SEEN_DATA = new Object();    ////////////////////////////////////////////////////////////////////    // Internal state.    ////////////////////////////////////////////////////////////////////    private Object state = SEEN_NOTHING;    private Stack stateStack = new Stack();    private StringBuffer whitespace = new StringBuffer();}// end of DataUnformatFilter.java

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线电影欧美成精品| 欧美精品在线一区二区三区| 老司机精品视频线观看86 | 日韩视频一区二区| 欧美视频在线观看一区二区| 色狠狠一区二区三区香蕉| 豆国产96在线|亚洲| 成人av资源在线| 91丨porny丨首页| 色婷婷精品久久二区二区蜜臀av | 亚洲国产精品久久一线不卡| 亚洲午夜激情av| 日韩av在线播放中文字幕| 日本vs亚洲vs韩国一区三区| 捆绑紧缚一区二区三区视频| 国产在线看一区| 成人性生交大片免费看中文| 色婷婷综合激情| 7777精品伊人久久久大香线蕉 | 国产精品女人毛片| 亚洲欧洲日韩一区二区三区| 亚洲大型综合色站| 久久电影网站中文字幕| 成人aa视频在线观看| 欧美日韩美少妇| 久久蜜臀精品av| 一区二区三区在线视频免费| 日本色综合中文字幕| 国产九九视频一区二区三区| 色综合天天综合| 日韩美女视频在线| 久久综合九色综合欧美98| 综合自拍亚洲综合图不卡区| 日本免费新一区视频| 国产成人免费视频一区| 欧美性xxxxx极品少妇| 日韩免费电影一区| 国产精品不卡在线| 美女性感视频久久| 91蝌蚪国产九色| 久久精品在线免费观看| 亚洲国产精品一区二区www在线| 国产一区二区0| 欧美私人免费视频| 国产精品天天摸av网| 日韩影院在线观看| 91丝袜高跟美女视频| 欧美成人官网二区| 亚洲国产一区二区三区| 国产69精品久久777的优势| 欧美日本韩国一区| 亚洲蜜臀av乱码久久精品| 国产精品18久久久久久久久 | 蜜桃久久久久久| 欧美亚洲日本一区| 亚洲欧洲日韩一区二区三区| 国产精品66部| 欧美一区永久视频免费观看| 亚洲精品国产a| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 日韩女优电影在线观看| 亚洲国产日韩精品| 91福利在线播放| 一区二区三区波多野结衣在线观看 | 欧美日韩不卡一区| 亚洲美女淫视频| 白白色亚洲国产精品| 久久先锋资源网| 国产综合久久久久影院| 欧美va亚洲va香蕉在线| 久久黄色级2电影| 69成人精品免费视频| 婷婷中文字幕一区三区| 欧美午夜精品久久久久久超碰| 亚洲欧美电影一区二区| 一本久道久久综合中文字幕| 国产精品激情偷乱一区二区∴| 成人黄色片在线观看| 国产精品全国免费观看高清 | 国产91精品入口| 国产日韩欧美电影| 国产一区二区三区四区五区入口| 日韩一级成人av| 国内精品久久久久影院薰衣草| ww久久中文字幕| 国产成人亚洲精品青草天美| 中文字幕欧美三区| 99麻豆久久久国产精品免费优播| 一区在线播放视频| 欧美日韩一区二区三区在线看 | 欧美精品一区二区三区一线天视频| 日本麻豆一区二区三区视频| 日韩午夜三级在线| 国产乱人伦偷精品视频不卡| 欧美国产精品一区二区| 91免费看片在线观看| 亚洲成人资源网| 日韩亚洲欧美在线观看| 国产黄色精品视频| 亚洲精品视频观看| 日韩精品一区二区三区四区| 黄网站免费久久| 中文字幕日本不卡| 91精品国产综合久久婷婷香蕉| 国产在线一区观看| 亚洲三级视频在线观看| 3atv在线一区二区三区| 国产精品18久久久久久久久| 亚洲综合激情网| 欧美tk—视频vk| 色又黄又爽网站www久久| 老司机午夜精品| 亚洲视频图片小说| 日韩一区二区三区四区五区六区| 国产成人aaa| 亚洲成人福利片| 中文字幕av不卡| 欧美日韩国产a| 成人久久久精品乱码一区二区三区| 亚洲综合图片区| 国产三级欧美三级日产三级99| 欧美网站大全在线观看| 激情综合色综合久久综合| 亚洲免费观看在线视频| 久久久久青草大香线综合精品| 日韩色视频在线观看| 色综合天天天天做夜夜夜夜做| 麻豆国产精品一区二区三区| 亚洲精品高清在线| 国产精品久久久爽爽爽麻豆色哟哟| 欧美亚洲免费在线一区| av在线不卡电影| 国产美女一区二区| 免费成人av在线| 亚洲福利一区二区三区| 亚洲欧美韩国综合色| 国产精品蜜臀在线观看| 精品国产乱子伦一区| 制服丝袜亚洲精品中文字幕| 色综合 综合色| 91老师片黄在线观看| 懂色av一区二区夜夜嗨| 国产原创一区二区| 精品一区二区三区在线播放视频| 亚洲18女电影在线观看| 亚洲精品久久嫩草网站秘色| 日韩毛片一二三区| 日韩毛片视频在线看| 1区2区3区欧美| **网站欧美大片在线观看| 国产婷婷一区二区| 久久免费午夜影院| xfplay精品久久| 久久九九影视网| 国产日韩精品一区二区三区 | 免费av成人在线| 日本人妖一区二区| 久久精品99国产国产精| 另类人妖一区二区av| 经典三级在线一区| 国产精品99久久久久久似苏梦涵| 欧美午夜精品一区二区三区| 91丨porny丨蝌蚪视频| 日本二三区不卡| 欧美在线free| 91精品国产色综合久久久蜜香臀| 日韩一二在线观看| 久久婷婷色综合| 一区二区中文字幕在线| 亚洲一区在线观看免费| 三级久久三级久久| 精品一区二区三区欧美| 国产尤物一区二区在线| 成人性生交大片免费看在线播放| 99久久婷婷国产精品综合| 欧美日韩在线一区二区| 精品欧美乱码久久久久久1区2区| 国产午夜精品福利| 夜夜爽夜夜爽精品视频| 日韩精品欧美精品| 国产一区二三区| 一本色道亚洲精品aⅴ| 欧美二区乱c少妇| 国产调教视频一区| 亚洲国产精品影院| 国产一区二区三区国产| 色呦呦网站一区| 精品国产一区二区在线观看| 国产精品久久久久久久久动漫| 偷拍自拍另类欧美| 国产盗摄女厕一区二区三区| 在线视频欧美精品| 久久综合狠狠综合久久综合88| 国产精品久久久久久久久免费桃花 | 国产精品每日更新| 日韩精品一区第一页| 成人av网址在线| 欧美一区二区视频免费观看| 国产精品国产三级国产aⅴ原创| 视频一区二区三区入口|