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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? bindingselector.java

?? 對(duì)xml很好的java處理引擎,編譯中綁定xml
?? JAVA
字號(hào):
/*Copyright (c) 2003-2004, Dennis M. SosnoskiAll rights reserved.Redistribution and use in source and binary forms, with or without modification,are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this   list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice,   this list of conditions and the following disclaimer in the documentation   and/or other materials provided with the distribution. * Neither the name of JiBX nor the names of its contributors may be used   to endorse or promote products derived from this software without specific   prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ANDANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIEDWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FORANY 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 ONANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THISSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/package org.jibx.extras;import java.io.OutputStream;import java.io.Writer;import org.jibx.runtime.BindingDirectory;import org.jibx.runtime.IBindingFactory;import org.jibx.runtime.IMarshallable;import org.jibx.runtime.IUnmarshallingContext;import org.jibx.runtime.JiBXException;import org.jibx.runtime.impl.MarshallingContext;import org.jibx.runtime.impl.UnmarshallingContext;/** * Binding selector that supports versioned XML documents. This looks for a * <i>version</i> attribute on the root element of the document, and selects the * mapping to be used for unmarshalling based on the value. It also supports * selecting the version for marshalling based on a supplied version argument * value. *  * @author Dennis M. Sosnoski * @version 1.0 */public class BindingSelector{    /** URI of version selection attribute. */    private final String m_attributeUri;        /** Name of version selection attribute. */    private final String m_attributeName;        /** Array of version names. */    private final String[] m_versionTexts;        /** Array of bindings corresponding to versions. */    private final String[] m_versionBindings;        /** Basic unmarshalling context used to determine document version. */    private final UnmarshallingContext m_context;        /** Stream for marshalling output. */    private OutputStream m_outputStream;        /** Encoding for output stream. */    private String m_outputEncoding;        /** Output writer for marshalling. */    private Writer m_outputWriter;        /** Indentation for marshalling. */    private int m_outputIndent;        /**     * Constructor.     *     * @param uri version selection attribute URI (<code>null</code> if none)     * @param name version selection attribute name     * @param versions array of version texts (first is default)     * @param bindings array of binding names corresponding to versions     */        public BindingSelector(String uri, String name, String[] versions,        String[] bindings) {        m_attributeUri = uri;        m_attributeName = name;        m_versionTexts = versions;        m_versionBindings = bindings;        m_context = new UnmarshallingContext();        m_outputIndent = -1;    }        /**     * Get initial unmarshalling context. This gives access to the unmarshalling     * context used before the specific version is determined. The document     * information must be set for this context before calling {@link     * #unmarshalVersioned}.     *     * @return initial unmarshalling context     */        public IUnmarshallingContext getContext() {        return m_context;    }        /**     * Set output stream and encoding.     *     * @param outs stream for document data output     * @param enc document output encoding, or <code>null</code> for default     */         public void setOutput(OutputStream outs, String enc) {        m_outputStream = outs;        m_outputEncoding = enc;    }        /**     * Set output writer.     *     * @param outw writer for document data output     */        public void setOutput(Writer outw) {        m_outputWriter = outw;    }        /**     * Set nesting indent spaces.     *     * @param indent number of spaces to indent per level, or disable     * indentation if negative     */        public void setIndent(int indent) {        m_outputIndent = indent;    }        /**     * Marshal according to supplied version.     *     * @param obj root object to be marshalled     * @param version identifier for version to be used in marshalling     * @throws JiBXException if error in marshalling     */        public void marshalVersioned(Object obj, String version)        throws JiBXException {                // look up version in defined list        String match = (version == null) ? m_versionTexts[0] : version;        for (int i = 0; i < m_versionTexts.length; i++) {            if (match.equals(m_versionTexts[i])) {                                // version found, create marshaller for the associated binding                IBindingFactory fact = BindingDirectory.                    getFactory(m_versionBindings[i], obj.getClass());                MarshallingContext context =                    (MarshallingContext)fact.createMarshallingContext();                                // configure marshaller for writing document                context.setIndent(m_outputIndent);                if (m_outputWriter == null) {                    if (m_outputStream == null) {                        throw new JiBXException("Output not configured");                    } else {                        context.setOutput(m_outputStream, m_outputEncoding);                    }                } else {                    context.setOutput(m_outputWriter);                }                                // output object as document                context.startDocument(m_outputEncoding, null);                ((IMarshallable)obj).marshal(context);                context.endDocument();                return;                            }        }                // error if unknown version in document        throw new JiBXException("Unrecognized document version " + version);    }        /**     * Unmarshal according to document version.     *     * @param clas expected class mapped to root element of document (used only     * to look up the binding)     * @return root object unmarshalled from document     * @throws JiBXException if error in unmarshalling     */        public Object unmarshalVersioned(Class clas) throws JiBXException {                // get the version attribute value (using first value as default)        m_context.toStart();        String version = m_context.attributeText(m_attributeUri,            m_attributeName, m_versionTexts[0]);                // look up version in defined list        for (int i = 0; i < m_versionTexts.length; i++) {            if (version.equals(m_versionTexts[i])) {                                // version found, create unmarshaller for the associated binding                IBindingFactory fact = BindingDirectory.                    getFactory(m_versionBindings[i], clas);                UnmarshallingContext context =                    (UnmarshallingContext)fact.createUnmarshallingContext();                                // return object unmarshalled using binding for document version                context.setFromContext(m_context);                return context.unmarshalElement();                            }        }                // error if unknown version in document        throw new JiBXException("Unrecognized document version " + version);    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩高清一区二区不卡| 性久久久久久久久久久久| jlzzjlzz亚洲日本少妇| 亚洲国产一区在线观看| 久久综合色播五月| 在线观看不卡视频| 国产99久久久国产精品免费看| 亚洲一区在线播放| 国产片一区二区三区| 欧美日韩成人高清| 91丨国产丨九色丨pron| 国模冰冰炮一区二区| 亚洲va在线va天堂| 亚洲天堂精品在线观看| 久久蜜臀中文字幕| 日韩精品一区二区三区视频播放| 色综合一区二区三区| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 日韩你懂的电影在线观看| 日韩免费性生活视频播放| 色激情天天射综合网| 粉嫩绯色av一区二区在线观看| 久久精品国产网站| 亚洲国产欧美在线人成| 亚洲欧美一区二区视频| 久久精品视频在线免费观看 | 欧美日韩国产一级二级| 91在线无精精品入口| 成人禁用看黄a在线| 国产999精品久久| 国产一区二区三区久久久| 男女性色大片免费观看一区二区 | 国产精品久久久久久久久免费丝袜 | 国产精品欧美久久久久一区二区| 欧美一区二区三区白人| 欧美军同video69gay| 欧美日韩免费观看一区三区| 欧美在线观看一区| 亚洲黄色免费网站| 自拍偷在线精品自拍偷无码专区| 欧美激情资源网| 国产欧美一区二区精品秋霞影院| 欧美精品一区二区三区很污很色的 | 青青草原综合久久大伊人精品| 亚洲香肠在线观看| 亚洲成人自拍偷拍| 天天爽夜夜爽夜夜爽精品视频| 亚洲一二三四区不卡| 一区二区欧美精品| 亚洲一区二区三区四区在线| 午夜天堂影视香蕉久久| 日欧美一区二区| 另类小说欧美激情| 国产高清亚洲一区| bt7086福利一区国产| 色94色欧美sute亚洲线路二| 欧美色综合天天久久综合精品| 精品视频999| 精品国偷自产国产一区| 国产亚洲人成网站| 国产精品美女久久福利网站| 亚洲精品视频一区二区| 亚洲国产精品精华液网站| 免费观看久久久4p| 国产麻豆视频一区| 99久久免费精品| 精品视频123区在线观看| 日韩一区二区三| 国产亚洲美州欧州综合国| 亚洲免费在线电影| 日韩高清一区在线| 国产成人在线看| 91成人免费在线| 日韩免费观看高清完整版在线观看| 久久久综合精品| 亚洲人成伊人成综合网小说| 日本不卡一二三| 成人爽a毛片一区二区免费| 欧洲精品中文字幕| 精品剧情v国产在线观看在线| 国产精品家庭影院| 日韩福利电影在线观看| 成人免费视频国产在线观看| 欧美日韩久久久一区| 国产女主播一区| 亚洲高清免费观看| 国产成人av一区二区| 欧美在线观看禁18| 久久久国产精品不卡| 一区二区三区四区视频精品免费| 美女视频一区在线观看| 91蜜桃在线观看| 日韩欧美国产三级| 亚洲男人的天堂在线aⅴ视频| 秋霞午夜鲁丝一区二区老狼| 91亚洲男人天堂| 精品国产乱码久久久久久图片| 亚洲精品亚洲人成人网 | 精品一区二区综合| 在线观看一区二区精品视频| 久久久久久久电影| 日精品一区二区三区| 99国产精品99久久久久久| 日韩午夜电影在线观看| 亚洲精品v日韩精品| 国产一区二区免费看| 欧美日韩一级黄| 亚洲欧美日韩久久| 国产精品一区二区在线观看网站| 欧美日韩国产中文| 亚洲日穴在线视频| 国产成人综合自拍| 欧美videos中文字幕| 亚洲国产日韩精品| 91免费小视频| 国产精品三级视频| 国产麻豆精品theporn| 日韩一区二区在线看| 亚洲一区二区精品久久av| 成人性生交大合| 久久久久久久综合色一本| 婷婷开心久久网| 欧美区在线观看| 一区二区三区高清在线| av色综合久久天堂av综合| 国产喂奶挤奶一区二区三区| 激情丁香综合五月| 91精品国产福利| 丝袜亚洲另类丝袜在线| 欧美影院午夜播放| 亚洲成a人片在线不卡一二三区| 一本高清dvd不卡在线观看| 国产精品视频免费| 成人91在线观看| 国产精品色在线观看| 粉嫩av一区二区三区| 国产精品―色哟哟| 99久久婷婷国产综合精品电影| 欧美国产激情一区二区三区蜜月| 国产老妇另类xxxxx| 久久众筹精品私拍模特| 国产福利91精品| 中文字幕一区二区三区在线播放| 盗摄精品av一区二区三区| 国产精品沙发午睡系列990531| 成人高清视频在线观看| 亚洲色图欧美激情| 91九色02白丝porn| 午夜精品久久久久久久久久久| 欧美日韩一区二区不卡| 肉色丝袜一区二区| 欧美一区二区黄色| 极品少妇xxxx偷拍精品少妇| 久久麻豆一区二区| 成人高清免费观看| 一区二区三区四区精品在线视频 | 国产午夜亚洲精品理论片色戒| 国产精品99久久久久久宅男| 中文字幕精品在线不卡| 99精品视频在线免费观看| 亚洲国产日韩综合久久精品| 日韩一区二区视频| 国产老肥熟一区二区三区| 17c精品麻豆一区二区免费| 欧美性三三影院| 男人操女人的视频在线观看欧美| 久久久综合精品| 91浏览器打开| 日韩激情一区二区| 中文字幕巨乱亚洲| 欧美日韩国产高清一区| 国模无码大尺度一区二区三区| 国产精品久久久久久久久图文区 | 国产黄色成人av| 亚洲精品免费在线观看| 制服丝袜中文字幕亚洲| 国产麻豆精品视频| 亚洲综合成人在线| 欧美成人午夜电影| 一本久久精品一区二区| 九九九久久久精品| 亚洲精品免费在线| 亚洲精品一区在线观看| 一本色道**综合亚洲精品蜜桃冫 | 久久精品久久99精品久久| 亚洲欧洲三级电影| 欧美成人艳星乳罩| 色综合夜色一区| 精品亚洲欧美一区| 亚洲一区二区四区蜜桃| 久久久久久久电影| 欧美巨大另类极品videosbest | 色婷婷av久久久久久久| 黑人巨大精品欧美黑白配亚洲| 亚洲欧美激情插| 国产日韩av一区| 日韩欧美国产精品一区| 欧美在线视频全部完| 成人午夜免费电影| 久久99在线观看|