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

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

?? stringarrayconverter.java

?? 這是一個有關(guān)common beanutils 的源碼
?? JAVA
字號:
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


package org.apache.commons.beanutils.converters;


import java.util.List;
import org.apache.commons.beanutils.ConversionException;


/**
 * Standard {@link org.apache.commons.beanutils.Converter} implementation that converts an incoming
 * String into an array of String objects. On a conversion failure, returns
 * a specified default value or throws a {@link ConversionException} depending
 * on how this instance is constructed.
 * <p>
 * There is also some special handling where the input is of type int[].
 * See method convert for more details.  
 *
 * @author Craig R. McClanahan
 * @version $Revision: 556229 $ $Date: 2007-07-14 07:11:19 +0100 (Sat, 14 Jul 2007) $
 * @since 1.4
 * @deprecated Replaced by the new {@link ArrayConverter} implementation
 */

public final class StringArrayConverter extends AbstractArrayConverter {


    // ----------------------------------------------------------- Constructors


    /**
     * Create a {@link org.apache.commons.beanutils.Converter} that will throw
     * a {@link ConversionException} if a conversion error occurs.
     */
    public StringArrayConverter() {

        this.defaultValue = null;
        this.useDefault = false;

    }


    /**
     * Create a {@link org.apache.commons.beanutils.Converter} that will return
     * the specified default value if a conversion error occurs.
     *
     * @param defaultValue The default value to be returned
     */
    public StringArrayConverter(Object defaultValue) {

        this.defaultValue = defaultValue;
        this.useDefault = true;

    }


    // ------------------------------------------------------- Static Variables


    /**
     * <p>Model object for type comparisons.</p>
     */
    private static final String[] MODEL = new String[0];
    
    /**
     * <p> Model object for int arrays.</p>
     */
    private static final int[] INT_MODEL = new int[0];



    // --------------------------------------------------------- Public Methods


    /**
     * Convert the specified input object into an output object of the
     * specified type.
     * <p>
     * If the value is already of type String[] then it is simply returned
     * unaltered.
     * <p>
     * If the value is of type int[], then a String[] is returned where each
     * element in the string array is the result of calling Integer.toString
     * on the corresponding element of the int array. This was added as a
     * result of bugzilla request #18297 though there is not complete
     * agreement that this feature should have been added. 
     * <p>
     * In all other cases, this method calls toString on the input object, then
     * assumes the result is a comma-separated list of values. The values are 
     * split apart into the individual items and returned as the elements of an
     * array. See class AbstractArrayConverter for the exact input formats
     * supported.
     * 
     * @param type is the data type to which this value should be converted.
     * It is expected to be the class for type String[] (though this parameter
     * is actually ignored by this method).
     * 
     * @param value is the input value to be converted. If null then the
     * default value is returned or an exception thrown if no default value
     * exists.
     * @return the converted value
     *
     * @exception ConversionException if conversion cannot be performed
     * successfully, or the input is null and there is no default value set
     * for this object.
     */
    public Object convert(Class type, Object value) {

        // Deal with a null value
        if (value == null) {
            if (useDefault) {
                return (defaultValue);
            } else {
                throw new ConversionException("No value specified");
            }
        }

        // Deal with the no-conversion-needed case
        if (MODEL.getClass() == value.getClass()) {
            return (value);
        }

        // Deal with the input value as an int array
        if (INT_MODEL.getClass() == value.getClass())
        {
            int[] values = (int[]) value;
            String[] results = new String[values.length];
            for (int i = 0; i < values.length; i++)
            {
                results[i] = Integer.toString(values[i]);
            }

            return (results);
        }

        // Parse the input value as a String into elements
        // and convert to the appropriate type
        try {
            List list = parseElements(value.toString());
            String[] results = new String[list.size()];
            for (int i = 0; i < results.length; i++) {
                results[i] = (String) list.get(i);
            }
            return (results);
        } catch (Exception e) {
            if (useDefault) {
                return (defaultValue);
            } else {
                throw new ConversionException(value.toString(), e);
            }
        }
    }

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲男人的天堂一区二区 | 精品国产一区二区三区久久影院| 蜜臀av一区二区| 亚洲欧洲综合另类在线| 日韩一级免费观看| 欧美午夜精品免费| 成人国产精品免费观看动漫 | 极品销魂美女一区二区三区| 最新久久zyz资源站| 久久久蜜桃精品| 日韩视频123| 精品国产露脸精彩对白 | 一区二区三区在线观看视频| 中文一区一区三区高中清不卡| 欧美国产乱子伦| 亚洲人精品午夜| 亚洲一区二区成人在线观看| 一区二区三区成人| 中文字幕欧美激情| 成人欧美一区二区三区黑人麻豆| 国产亚洲一二三区| 国产人成一区二区三区影院| 久久久另类综合| 日本一区二区三区在线不卡 | 日韩一二在线观看| 久久精品夜夜夜夜久久| 久久久久久久久久久电影| 久久精品日韩一区二区三区| 国产亚洲综合色| 亚洲精选视频在线| 青娱乐精品视频| 成人免费黄色在线| 欧洲视频一区二区| 欧美成人欧美edvon| 国产精品情趣视频| 亚洲午夜久久久久久久久久久| 日日噜噜夜夜狠狠视频欧美人 | 青青草原综合久久大伊人精品 | 亚洲婷婷在线视频| 亚洲午夜在线电影| 韩国v欧美v亚洲v日本v| 99久久精品国产一区二区三区| 在线视频亚洲一区| 精品少妇一区二区三区免费观看| 国产精品嫩草99a| 久久9热精品视频| 欧美伊人久久久久久久久影院| 精品国产乱码久久久久久久 | 国产精品黄色在线观看| 青青青爽久久午夜综合久久午夜| 99久久精品国产毛片| 精品国产精品一区二区夜夜嗨| 亚洲精品久久久蜜桃| 成人黄色小视频| 亚洲国产成人一区二区三区| 日本人妖一区二区| 日本高清成人免费播放| 中文字幕免费一区| 成人动漫在线一区| 欧美韩国日本不卡| eeuss鲁一区二区三区| 久久亚洲影视婷婷| 国内精品伊人久久久久影院对白| 欧美日本一区二区在线观看| 亚洲在线一区二区三区| 欧美一级生活片| 亚洲一区电影777| 欧美日韩精品一二三区| 一区二区三区国产豹纹内裤在线| 成人污视频在线观看| 亚洲欧美综合在线精品| 91在线小视频| 亚洲午夜激情av| 欧美色视频一区| 午夜精品久久久久久久| 91麻豆精品国产综合久久久久久 | 亚洲午夜三级在线| 欧美四级电影在线观看| 亚洲成av人片在线| 日韩一级片网址| 国产剧情一区二区三区| 国产精品国产三级国产aⅴ入口| 国产不卡在线一区| 亚洲永久精品国产| 日韩亚洲欧美在线| 成人av资源在线观看| 国内成人精品2018免费看| 久久久久国产精品免费免费搜索| 粉嫩嫩av羞羞动漫久久久| 一区二区三区在线影院| 欧美成人vps| 在线观看免费视频综合| 精品一区二区三区蜜桃| 一区二区三区丝袜| 久久影音资源网| 欧美日韩一区二区三区在线| 国产一区在线精品| 亚洲一区二区在线免费观看视频| 26uuu亚洲| 制服丝袜亚洲色图| 91一区二区三区在线观看| 国内外成人在线| 亚洲二区在线视频| 亚洲欧美一区二区三区久本道91 | 久久久美女艺术照精彩视频福利播放| 91福利精品第一导航| 久久精工是国产品牌吗| 亚洲一区二区三区影院| 亚洲少妇30p| 中文字幕一区在线| 中文字幕视频一区| 国产日产欧产精品推荐色| 欧美成人欧美edvon| 欧美精品xxxxbbbb| 欧美天堂一区二区三区| 91在线视频免费观看| 高清不卡在线观看| 国产自产2019最新不卡| 毛片av一区二区三区| 青娱乐精品在线视频| 日本不卡一二三| 蜜桃av噜噜一区| 久久国产视频网| 国产精品一区二区在线观看不卡 | 丁香婷婷深情五月亚洲| 国产成人精品影院| 国产成人精品在线看| 色综合天天天天做夜夜夜夜做| 成人高清伦理免费影院在线观看| 国产一区二区三区在线看麻豆| 激情深爱一区二区| av成人动漫在线观看| 91福利视频网站| 欧美成人精品福利| 国产精品亲子乱子伦xxxx裸| 中文在线免费一区三区高中清不卡| 亚洲精品视频在线| 视频一区视频二区中文字幕| 极品美女销魂一区二区三区免费| 国产伦精一区二区三区| 在线观看视频一区二区欧美日韩 | 欧美亚男人的天堂| www国产成人免费观看视频 深夜成人网| 久久久久国产精品免费免费搜索| 国产精品久久夜| 毛片av中文字幕一区二区| 不卡电影免费在线播放一区| 欧美在线看片a免费观看| 国产清纯白嫩初高生在线观看91| 亚洲欧美国产77777| 秋霞成人午夜伦在线观看| 成人激情图片网| 日韩一区二区在线播放| 中文字幕永久在线不卡| 免费观看30秒视频久久| 色婷婷av一区二区三区软件| www欧美成人18+| 日韩综合在线视频| 精品视频在线看| 亚洲精品伦理在线| 成人黄色一级视频| 久久久久久亚洲综合影院红桃| 无码av免费一区二区三区试看| 成人毛片视频在线观看| 精品理论电影在线| 理论电影国产精品| 欧美成人r级一区二区三区| 午夜精品一区二区三区免费视频 | 亚洲成人动漫精品| 91国产丝袜在线播放| 亚洲精品国产第一综合99久久 | 亚洲成av人片在线| 91成人在线观看喷潮| 亚洲精品成a人| 日本久久电影网| 樱桃国产成人精品视频| 色天使色偷偷av一区二区| 亚洲女同一区二区| 一本久道久久综合中文字幕 | 欧美午夜精品一区| 夜夜操天天操亚洲| 欧美中文字幕一区二区三区亚洲| 亚洲一区二区三区美女| 欧美日本一区二区三区| 日韩av午夜在线观看| 日韩三级电影网址| 国产精品一区二区在线观看不卡| 日本一区二区三区dvd视频在线| 成人激情小说网站| 一区二区免费在线| 日韩女优av电影| 99精品国产91久久久久久| 自拍av一区二区三区| 欧美午夜免费电影| 国产久卡久卡久卡久卡视频精品| 日韩美女视频一区二区| 91精品国产综合久久精品麻豆| 久久精品免费观看| 亚洲黄网站在线观看| 国产亚洲女人久久久久毛片|