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

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

?? xml.java

?? 主要的怎么樣結合java 和 javascript!
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
    /**     *     * @return     */    private XmlCursor newCursor ()    {        XmlCursor curs;        if (_anno != null)        {            curs = _anno.createCursor();            if (curs == null)            {                // Orphaned case.                XmlObject doc = XmlObject.Factory.newInstance();                curs = doc.newCursor();                if (_anno._name != null)                {                    curs.toNextToken();                    curs.insertElement(_anno._name);                    curs.toPrevSibling();                }                curs.setBookmark(_anno);            }        }        else        {            XmlObject doc = XmlObject.Factory.newInstance();            curs = doc.newCursor();        }        return curs;    }    /*     * fUseStartDoc used by child(int index) the index is at startDoc is the element at the top-level     *              otherwise we always want to drill in.     */    private boolean moveToChild(XmlCursor curs, long index, boolean fFirstChild, boolean fUseStartDoc)    {        if (index < 0)            throw new IllegalArgumentException();        long idxChild = 0;        if (!fUseStartDoc && curs.currentTokenType().isStartdoc())        {            // We always move to the children of the top node.            // todo:  This assumes that we want have multiple top-level nodes.  Which we should be able tohave.            curs.toFirstContentToken();        }        TokenType tt = curs.toFirstContentToken();        if (!tt.isNone() && !tt.isEnd())        {            while (true)            {                if (index == idxChild)                {                    return true;                }                tt = curs.currentTokenType();                if (tt.isText())                {                    curs.toNextToken();                }                else if (tt.isStart())                {                    // Need to do this we want to be pointing at the text if that after the end token.                    curs.toEndToken();                    curs.toNextToken();                }                else if (tt.isComment() || tt.isProcinst())                {                    continue;                }                else                {                    break;                }                idxChild++;            }        }        else if (fFirstChild && index == 0)        {            // Drill into where first child would be.//            curs.toFirstContentToken();            return true;        }        return false;    }    /**     *     * @return     */    XmlCursor.TokenType tokenType()    {        XmlCursor.TokenType result;        XmlCursor curs = newCursor();        if (curs.isStartdoc())        {            curs.toFirstContentToken();        }        result = curs.currentTokenType();        curs.dispose();        return result;    }    /**     *     * @param srcCurs     * @param destCurs     * @param fDontMoveIfSame     * @return     */    private boolean moveSrcToDest (XmlCursor srcCurs, XmlCursor destCurs, boolean fDontMoveIfSame)    {        boolean fMovedSomething = true;        TokenType tt;        do        {            if (fDontMoveIfSame && srcCurs.isInSameDocument(destCurs) && (srcCurs.comparePosition(destCurs) == 0))            {                // If the source and destination are pointing at the same place then there's nothing to move.                fMovedSomething = false;                break;            }            // todo ***TLL*** Use replaceContents (when added) and eliminate children removes (see above todo).            if (destCurs.currentTokenType().isStartdoc())            {                destCurs.toNextToken();            }            // todo ***TLL*** Can Eric support notion of copy instead of me copying then moving???            XmlCursor copyCurs = copy(srcCurs);            copyCurs.moveXml(destCurs);            copyCurs.dispose();            tt = srcCurs.currentTokenType();        } while (!tt.isStart() && !tt.isEnd() && !tt.isEnddoc());        return fMovedSomething;    }    /**     *     * @param cursToCopy     * @return     */    private XmlCursor copy (XmlCursor cursToCopy)    {        XmlObject xo = XmlObject.Factory.newInstance();        XmlCursor copyCurs = null;        if (cursToCopy.currentTokenType().isText())        {            try            {                // Try just as a textnode, to do that we need to wrap the text in a special fragment tag                // that is not visible from the XmlCursor.                copyCurs = XmlObject.Factory.parse("<x:fragment xmlns:x=\"http://www.openuri.org/fragment\">" +                                           cursToCopy.getChars() +                                           "</x:fragment>").newCursor();                if (!cursToCopy.toNextSibling())                {                    if (cursToCopy.currentTokenType().isText())                    {                        cursToCopy.toNextToken();   // It's not an element it's text so skip it.                    }                }            }            catch (Exception ex)            {                throw ScriptRuntime.typeError(ex.getMessage());            }        }        else        {            copyCurs = xo.newCursor();            copyCurs.toFirstContentToken();            cursToCopy.copyXml(copyCurs);            if (!cursToCopy.toNextSibling())        // If element skip element.            {                if (cursToCopy.currentTokenType().isText())                {                    cursToCopy.toNextToken();       // It's not an element it's text so skip it.                }            }        }        copyCurs.toStartDoc();        copyCurs.toFirstContentToken();        return copyCurs;    }    private static final int APPEND_CHILD = 1;    private static final int PREPEND_CHILD = 2;    /**     *     * @param curs     * @param xmlToInsert     */    private void insertChild(XmlCursor curs, Object xmlToInsert)    {        if (xmlToInsert == null || xmlToInsert instanceof Undefined)        {            // Do nothing        }        else if (xmlToInsert instanceof XmlCursor)        {            moveSrcToDest((XmlCursor)xmlToInsert, curs, true);        }        else if (xmlToInsert instanceof XML)        {            XML xmlValue = (XML) xmlToInsert;            // If it's an attribute, then change to text node            if (xmlValue.tokenType() == XmlCursor.TokenType.ATTR)            {                insertChild(curs, xmlValue.toString());            }            else            {                XmlCursor cursToInsert = ((XML) xmlToInsert).newCursor();                moveSrcToDest(cursToInsert, curs, true);                cursToInsert.dispose();            }        }        else if (xmlToInsert instanceof XMLList)        {            XMLList list = (XMLList) xmlToInsert;            for (int i = 0; i < list.length(); i++)            {                insertChild(curs, list.item(i));            }        }        else        {            // Convert to string and make XML out of it            String  xmlStr = ScriptRuntime.toString(xmlToInsert);            XmlObject xo = XmlObject.Factory.newInstance();         // Create an empty document.            XmlCursor sourceCurs = xo.newCursor();            sourceCurs.toNextToken();            // To hold the text.            sourceCurs.insertChars(xmlStr);            sourceCurs.toPrevToken();            // Call us again with the cursor.            moveSrcToDest(sourceCurs, curs, true);        }    }    /**     *     * @param childToMatch     * @param xmlToInsert     * @param addToType     */    private void insertChild(XML childToMatch, Object xmlToInsert, int addToType)    {        XmlCursor curs = newCursor();        TokenType tt = curs.currentTokenType();        XmlCursor xmlChildCursor = childToMatch.newCursor();        if (tt.isStartdoc())        {            tt = curs.toFirstContentToken();        }        if (tt.isContainer())        {            tt = curs.toNextToken();            while (!tt.isEnd())            {                if (tt.isStart())                {                    // See if this child is the same as the one thep passed in                    if (curs.comparePosition(xmlChildCursor) == 0)                    {                        // Found it                        if (addToType == APPEND_CHILD)                        {                            // Move the cursor to just past the end of this element                            curs.toEndToken();                            curs.toNextToken();                        }                        insertChild(curs, xmlToInsert);                        break;                    }                }                // Skip over child elements                if (tt.isStart())                {                    tt = curs.toEndToken();                }                tt = curs.toNextToken();            }        }        xmlChildCursor.dispose();        curs.dispose();    }    /**     *     * @param curs     */    protected void removeToken (XmlCursor curs)    {        XmlObject xo = XmlObject.Factory.newInstance();        // Don't delete anything move to another document so it gets orphaned nicely.        XmlCursor tmpCurs = xo.newCursor();        tmpCurs.toFirstContentToken();        curs.moveXml(tmpCurs);        tmpCurs.dispose();    }    /**     *     * @param index     */    protected void removeChild(long index)    {        XmlCursor curs = newCursor();        if (moveToChild(curs, index, false, false))        {            removeToken(curs);        }        curs.dispose();    }    /**     *     * @param name     * @return     */    protected static javax.xml.namespace.QName computeQName (Object name)    {        if (name instanceof String)        {            String ns = null;            String localName = null;            String fullName = (String)name;            localName = fullName;            if (fullName.startsWith("\""))            {                int idx = fullName.indexOf(":");                if (idx != -1)                {                    ns = fullName.substring(1, idx - 1);    // Don't include the "" around the namespace                    localName = fullName.substring(idx + 1);                }            }            if (ns == null)            {                return new javax.xml.namespace.QName(localName);            }            else            {                return new javax.xml.namespace.QName(ns, localName);            }        }        return null;    }    /**     *     * @param destCurs     * @param newValue     */    private void replace(XmlCursor destCurs, XML newValue)    {        if (destCurs.isStartdoc())        {            // Can't overwrite a whole document (user really wants to overwrite the contents of).            destCurs.toFirstContentToken();        }        // Orphan the token -- don't delete it outright on the XmlCursor.        removeToken(destCurs);        XmlCursor srcCurs = newValue.newCursor();        if (srcCurs.currentTokenType().isStartdoc())        {            // Cann't append a whole document (user really wants to append the contents of).            srcCurs.toFirstContentToken();        }        moveSrcToDest(srcCurs, destCurs, false);        // Re-link a new annotation to this cursor -- we just deleted the previous annotation on entrance to replace.        if (!destCurs.toPrevSibling())        {            destCurs.toPrevToken();        }        destCurs.setBookmark(new XScriptAnnotation(destCurs));        // todo would be nice if destCurs.toNextSibling went to where the next token if the cursor was pointing at the last token in the stream.        destCurs.toEndToken();        destCurs.toNextToken();        srcCurs.dispose();    }    /**     *     * @param currXMLNode     * @param xmlValue     * @return     */    private boolean doPut(XMLName name, XML currXMLNode, XMLObjectImpl xmlValue)    {        boolean result = false;        XmlCursor curs = currXMLNode.newCursor();        try        {            // Replace the node with this new xml value.            XML xml;            int toAssignLen = xmlValue.length();            for (int i = 0; i < toAssignLen; i++)            {                if (xmlValue instanceof XMLList)                {                    xml = (XML)((XMLList) xmlValue).item(i);                }                else                {                    xml = (XML) xmlValue;                }                // If it's an attribute or text node, make text node.                XmlCursor.TokenType tt = xml.tokenType();                if (tt == XmlCursor.TokenType.ATTR || tt == XmlCursor.TokenType.TEXT)                {                    xml = makeXmlFromString(lib, name, xml.toString());                }                if (i == 0)                {                    // 1st assignment is replaceChild all others are appendChild                    replace(curs, xml);                }                else                {                    insertChild(curs, xml);                }            }            // We're done we've blown away the node because the rvalue was XML...            result = true;        }        catch (Exception ex)        {            ex.printStackTrace();            throw ScriptRuntime.typeError(ex.getMessage());        }        finally        {            curs.dispose();        }        return result;    }    /**     * Make a text node element with this element name and text value.     *     * @param name     * @param value     * @return     */    private XML makeXmlFromString(XMLLibImpl lib, XMLName name,                                      String value)    {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美一区二区在线观看| 日韩天堂在线观看| 国产精品三级视频| 成人免费毛片片v| 专区另类欧美日韩| 欧美日免费三级在线| 青草国产精品久久久久久| 欧美精品一区二区三区蜜桃| 国产高清精品久久久久| 国产精品国产自产拍高清av| 91黄色免费看| 久久精品久久99精品久久| 国产欧美精品一区| 欧美影片第一页| 老色鬼精品视频在线观看播放| 久久午夜老司机| 91视频www| 免费观看在线综合| 国产精品国模大尺度视频| 欧美性色黄大片| 国产一区二区成人久久免费影院| 国产精品理论片| 91精品一区二区三区在线观看| 国产自产视频一区二区三区| 99久久久无码国产精品| 欧美国产精品v| 亚洲女同ⅹxx女同tv| 91视频一区二区| 久久精品国产一区二区三| 欧美国产日韩a欧美在线观看| 精品1区2区3区| 国产精品一区二区x88av| 亚洲国产精品一区二区久久恐怖片| 久久久久亚洲蜜桃| 欧美视频一区二区三区| 国产白丝网站精品污在线入口| 亚洲妇女屁股眼交7| 国产亚洲一区字幕| 日韩限制级电影在线观看| 91亚洲精品久久久蜜桃| 狠狠网亚洲精品| 亚洲成人资源网| 亚洲人成小说网站色在线| 欧美精品一区二区三| 欧美无人高清视频在线观看| 国产成人超碰人人澡人人澡| 日韩有码一区二区三区| 亚洲日本在线看| 国产免费成人在线视频| 欧美大尺度电影在线| 欧美日韩国产一级二级| 99久久伊人久久99| 粉嫩13p一区二区三区| 久久aⅴ国产欧美74aaa| 午夜精品久久久久久久久| 亚洲激情图片一区| 中文字幕在线一区| 中文字幕不卡一区| 久久精品在这里| 欧美成人高清电影在线| 91麻豆精品91久久久久久清纯 | 顶级嫩模精品视频在线看| 亚洲成人一区二区在线观看| 亚洲欧美另类久久久精品2019| 亚洲国产岛国毛片在线| 久久影音资源网| 2021中文字幕一区亚洲| 精品伦理精品一区| 精品国产乱码久久久久久图片 | 在线观看一区不卡| 99国产精品国产精品毛片| av一区二区三区四区| 国产sm精品调教视频网站| 国产精品亚洲一区二区三区在线 | 正在播放亚洲一区| 欧美探花视频资源| 欧美巨大另类极品videosbest| 精品视频123区在线观看| 欧美自拍偷拍午夜视频| 欧美三级韩国三级日本一级| 欧美日韩亚洲另类| 91精品国产高清一区二区三区 | 欧美性感一类影片在线播放| 色八戒一区二区三区| 色老汉av一区二区三区| 欧美在线观看视频一区二区 | 日韩女优视频免费观看| 日韩欧美国产成人一区二区| 精品少妇一区二区| 国产亚洲欧美在线| 亚洲少妇30p| 亚洲国产精品久久人人爱| 日本中文字幕一区| 国产又黄又大久久| 99re这里只有精品6| 在线免费观看日本欧美| 欧美精品一卡两卡| 久久久影院官网| 亚洲女爱视频在线| 免费成人性网站| 成人精品免费看| 欧美日韩国产一级二级| 久久这里都是精品| 亚洲六月丁香色婷婷综合久久 | 91精品1区2区| 日韩欧美国产系列| 日韩一区在线免费观看| 亚洲va国产天堂va久久en| 国产美女在线精品| 在线视频国内自拍亚洲视频| 欧美一级精品在线| 国产精品乱人伦| 日韩电影免费一区| 成人激情开心网| 678五月天丁香亚洲综合网| 久久精品日产第一区二区三区高清版 | 色综合久久中文综合久久牛| 欧美精品三级日韩久久| 国产午夜三级一区二区三| 夜夜精品视频一区二区| 国产裸体歌舞团一区二区| 欧美三电影在线| 国产网站一区二区| 首页国产欧美久久| a在线播放不卡| 欧美成人video| 亚洲尤物在线视频观看| 国产一区二区三区在线看麻豆| 在线观看av一区| 国产色婷婷亚洲99精品小说| 日韩精品乱码免费| 91香蕉视频在线| 欧美激情一二三区| 久久精品国产澳门| 欧美日韩三级视频| 亚洲特级片在线| 成人一级黄色片| 精品少妇一区二区| 日韩高清电影一区| 在线观看亚洲精品视频| 国产精品不卡在线观看| 国产一区二区不卡| 日韩三区在线观看| 午夜视频在线观看一区二区三区| aaa亚洲精品| 亚洲国产激情av| 高清在线不卡av| 久久久久9999亚洲精品| 精品在线观看视频| 日韩欧美综合在线| 日韩激情视频在线观看| 欧美亚洲愉拍一区二区| 亚洲六月丁香色婷婷综合久久| a亚洲天堂av| 欧美国产一区二区| 成人免费毛片片v| 欧美极品少妇xxxxⅹ高跟鞋| 国产精品一二一区| 精品国产乱码久久久久久闺蜜| 日本女优在线视频一区二区 | 欧美一级生活片| 亚洲成国产人片在线观看| 在线观看av一区二区| 夜夜嗨av一区二区三区| 一本久久综合亚洲鲁鲁五月天 | 香蕉久久夜色精品国产使用方法 | 欧美一区二区在线不卡| 午夜精品一区二区三区三上悠亚| 在线一区二区视频| 亚洲国产精品久久久男人的天堂| 欧美视频在线一区二区三区| 亚洲一区欧美一区| 欧美日韩精品一区二区三区四区| 亚洲成人在线网站| 91精品国产欧美日韩| 老鸭窝一区二区久久精品| 精品乱码亚洲一区二区不卡| 国产一区二区三区| 中文字幕av一区二区三区免费看| 成人小视频免费观看| 亚洲欧洲美洲综合色网| 欧美艳星brazzers| 午夜影院久久久| 精品成人一区二区三区| 国产成人aaa| 一区二区三区视频在线观看 | 欧美一区二区高清| 国产伦精品一区二区三区免费| 国产日韩欧美制服另类| av一二三不卡影片| 亚洲国产精品久久久久秋霞影院| 欧美一级高清大全免费观看| 国产高清在线精品| 一区二区三区在线视频免费观看| 欧美久久一区二区| 国产高清在线精品| 亚洲一卡二卡三卡四卡五卡| 欧美大片日本大片免费观看| 成人一区二区在线观看| 亚洲一区在线观看免费|