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

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

?? shortlocaleconverter.java

?? 這是一個有關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.locale.converters;

import java.util.Locale;
import java.text.ParseException;
import org.apache.commons.beanutils.ConversionException;


/**
 * <p>Standard {@link org.apache.commons.beanutils.locale.LocaleConverter} 
 * implementation that converts an incoming
 * locale-sensitive String into a <code>java.lang.Short</code> object,
 * optionally using a default value or throwing a 
 * {@link org.apache.commons.beanutils.ConversionException}
 * if a conversion error occurs.</p>
 *
 * @author Yauheny Mikulski
 */

public class ShortLocaleConverter extends DecimalLocaleConverter {

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

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will throw a {@link org.apache.commons.beanutils.ConversionException}
     * if a conversion error occurs. The locale is the default locale for
     * this instance of the Java Virtual Machine and an unlocalized pattern is used
     * for the convertion.
     *
     */
    public ShortLocaleConverter() {

        this(false);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will throw a {@link org.apache.commons.beanutils.ConversionException}
     * if a conversion error occurs. The locale is the default locale for
     * this instance of the Java Virtual Machine.
     *
     * @param locPattern    Indicate whether the pattern is localized or not
     */
    public ShortLocaleConverter(boolean locPattern) {

        this(Locale.getDefault(), locPattern);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will throw a {@link org.apache.commons.beanutils.ConversionException}
     * if a conversion error occurs. An unlocalized pattern is used for the convertion.
     *
     * @param locale        The locale
     */
    public ShortLocaleConverter(Locale locale) {

        this(locale, false);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will throw a {@link org.apache.commons.beanutils.ConversionException}
     * if a conversion error occurs.
     *
     * @param locale        The locale
     * @param locPattern    Indicate whether the pattern is localized or not
     */
    public ShortLocaleConverter(Locale locale, boolean locPattern) {

        this(locale, (String) null, locPattern);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will throw a {@link org.apache.commons.beanutils.ConversionException}
     * if a conversion error occurs. An unlocalized pattern is used for the convertion.
     *
     * @param locale        The locale
     * @param pattern       The convertion pattern
     */
    public ShortLocaleConverter(Locale locale, String pattern) {

        this(locale, pattern, false);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will throw a {@link org.apache.commons.beanutils.ConversionException}
     * if a conversion error occurs.
     *
     * @param locale        The locale
     * @param pattern       The convertion pattern
     * @param locPattern    Indicate whether the pattern is localized or not
     */
    public ShortLocaleConverter(Locale locale, String pattern, boolean locPattern) {

        super(locale, pattern, locPattern);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will return the specified default value
     * if a conversion error occurs. The locale is the default locale for
     * this instance of the Java Virtual Machine and an unlocalized pattern is used
     * for the convertion.
     *
     * @param defaultValue  The default value to be returned
     */
    public ShortLocaleConverter(Object defaultValue) {

        this(defaultValue, false);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will return the specified default value
     * if a conversion error occurs. The locale is the default locale for
     * this instance of the Java Virtual Machine.
     *
     * @param defaultValue  The default value to be returned
     * @param locPattern    Indicate whether the pattern is localized or not
     */
    public ShortLocaleConverter(Object defaultValue, boolean locPattern) {

        this(defaultValue, Locale.getDefault(), locPattern);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will return the specified default value
     * if a conversion error occurs. An unlocalized pattern is used for the convertion.
     *
     * @param defaultValue  The default value to be returned
     * @param locale        The locale
     */
    public ShortLocaleConverter(Object defaultValue, Locale locale) {

        this(defaultValue, locale, false);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will return the specified default value
     * if a conversion error occurs.
     *
     * @param defaultValue  The default value to be returned
     * @param locale        The locale
     * @param locPattern    Indicate whether the pattern is localized or not
     */
    public ShortLocaleConverter(Object defaultValue, Locale locale, boolean locPattern) {

        this(defaultValue, locale, null, locPattern);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will return the specified default value
     * if a conversion error occurs. An unlocalized pattern is used for the convertion.
     *
     * @param defaultValue  The default value to be returned
     * @param locale        The locale
     * @param pattern       The convertion pattern
     */
    public ShortLocaleConverter(Object defaultValue, Locale locale, String pattern) {

        this(defaultValue, locale, pattern, false);
    }

    /**
     * Create a {@link org.apache.commons.beanutils.locale.LocaleConverter} 
     * that will return the specified default value
     * if a conversion error occurs.
     *
     * @param defaultValue  The default value to be returned
     * @param locale        The locale
     * @param pattern       The convertion pattern
     * @param locPattern    Indicate whether the pattern is localized or not
     */
    public ShortLocaleConverter(Object defaultValue, Locale locale, String pattern, boolean locPattern) {

        super(defaultValue, locale, pattern, locPattern);
    }

    /**
     * Convert the specified locale-sensitive input object into an output object of the
     * specified type. This method will return values of type Short.
     *
     * @param value The input object to be converted
     * @param pattern The pattern is used for the convertion
     * @return The converted value
     *
     * @exception org.apache.commons.beanutils.ConversionException if conversion cannot be performed
     *  successfully
     * @throws ParseException if an error occurs parsing a String to a Number
     */
    protected Object parse(Object value, String pattern) throws ParseException {

        Object result = super.parse(value, pattern);

        if (result == null || result instanceof Short) {
            return result;
        }

        Number parsed = (Number)result;
        if (parsed.longValue() != parsed.shortValue()) {
            throw new ConversionException("Supplied number is not of type Short: " + parsed.longValue());
        }

        // now returns property Short
        return new Short(parsed.shortValue());
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一二三四区| 毛片不卡一区二区| 日韩免费视频一区| 色琪琪一区二区三区亚洲区| 九九视频精品免费| 亚洲成人一区在线| 亚洲国产成人午夜在线一区 | 成人a区在线观看| 日本免费新一区视频| 亚洲色图.com| 国产三级欧美三级日产三级99| 欧美视频精品在线| 99r精品视频| 国产裸体歌舞团一区二区| 午夜精品福利一区二区三区av| 1024成人网| 国产欧美日韩综合| xnxx国产精品| 欧美一区二区在线看| 在线免费观看不卡av| 成人av高清在线| 国产传媒一区在线| 激情图片小说一区| 久久精品国产一区二区| 亚洲v中文字幕| 亚洲一区在线电影| 亚洲欧美经典视频| 成人免费在线视频| 中文字幕+乱码+中文字幕一区| 日韩欧美的一区二区| 欧美精品在线观看一区二区| 欧美日韩精品是欧美日韩精品| 91在线你懂得| 91老师国产黑色丝袜在线| 波多野结衣的一区二区三区| 国产成人av一区二区| 国产盗摄视频一区二区三区| 国产在线视频精品一区| 国内精品在线播放| 国产一区在线观看麻豆| 国产一区在线不卡| 成人午夜av在线| 成人免费看视频| 99久久国产综合精品色伊| gogo大胆日本视频一区| jizz一区二区| 欧美羞羞免费网站| 精品视频1区2区3区| 4438成人网| 日韩欧美成人激情| 久久综合久色欧美综合狠狠| 久久这里只有精品首页| 欧美精彩视频一区二区三区| 中文字幕一区二| 亚洲一区二区欧美激情| 视频一区免费在线观看| 久久91精品久久久久久秒播| 日本va欧美va精品| 日本不卡视频一二三区| 中文子幕无线码一区tr| 亚洲天堂2014| 亚洲一级二级三级在线免费观看| 午夜精品久久久久久久久久| 香蕉久久夜色精品国产使用方法 | 狠狠色狠狠色合久久伊人| 国内久久婷婷综合| 97久久久精品综合88久久| 色一情一伦一子一伦一区| 欧美精品久久99| 久久综合久久鬼色中文字| 国产精品伦一区二区三级视频| 一区二区三区丝袜| 日韩国产欧美在线观看| 国产成人自拍网| 色婷婷久久久久swag精品| 3d动漫精品啪啪一区二区竹菊| 国产亚洲福利社区一区| 亚洲精品成人悠悠色影视| 日韩精品一卡二卡三卡四卡无卡| 激情五月婷婷综合| 色综合天天综合在线视频| 日韩欧美在线123| 1区2区3区国产精品| 日本色综合中文字幕| 成人av在线一区二区三区| 欧美日韩三级一区二区| 国产视频亚洲色图| 国产欧美日韩三级| 亚洲精品一区二区三区精华液| 久久影院午夜论| 亚洲精品国产a久久久久久| 久久精品国产亚洲a| 色婷婷精品大视频在线蜜桃视频| 日韩免费观看高清完整版| 综合自拍亚洲综合图不卡区| 美女诱惑一区二区| 色欧美88888久久久久久影院| 亚洲精品在线免费观看视频| 一区二区不卡在线视频 午夜欧美不卡在| 裸体歌舞表演一区二区| 91成人免费在线| 欧美激情艳妇裸体舞| 日韩电影免费在线看| 91在线视频官网| 日本一区二区免费在线观看视频| 奇米色777欧美一区二区| 在线亚洲欧美专区二区| 国产欧美日韩卡一| 国产揄拍国内精品对白| 6080日韩午夜伦伦午夜伦| 亚洲日本韩国一区| 国产91丝袜在线播放0| 欧美va在线播放| 日韩成人dvd| 久久久久久久久久美女| 国产一区不卡在线| 色屁屁一区二区| 欧美一区二区精品在线| 亚洲最大色网站| 成人av网站大全| 中文字幕不卡的av| 国产精品亚洲第一区在线暖暖韩国| 91精品国产欧美一区二区| 亚洲愉拍自拍另类高清精品| 色婷婷av一区二区三区之一色屋| 中文字幕中文在线不卡住| 国产不卡视频在线播放| 日韩久久免费av| 奇米综合一区二区三区精品视频 | 欧美日韩久久一区| 玉米视频成人免费看| 91视频免费播放| 亚洲另类在线视频| 色综合天天性综合| 亚洲欧美日韩国产综合在线| 99国产欧美久久久精品| 中文字幕在线不卡一区二区三区| 波波电影院一区二区三区| 亚洲视频在线一区观看| 97se亚洲国产综合自在线不卡| 自拍偷拍国产亚洲| 色吧成人激情小说| 亚洲电影在线播放| 在线综合视频播放| 久久福利视频一区二区| 精品处破学生在线二十三| 国产乱子轮精品视频| 国产精品免费视频一区| 91亚洲永久精品| 亚洲mv大片欧洲mv大片精品| 884aa四虎影成人精品一区| 精品一区二区免费在线观看| 国产午夜精品福利| 成人av资源下载| 夜夜精品浪潮av一区二区三区 | 国产欧美精品国产国产专区| av中文一区二区三区| 亚洲精品国久久99热| 欧美日韩第一区日日骚| 麻豆高清免费国产一区| 国产欧美精品日韩区二区麻豆天美| av毛片久久久久**hd| 亚洲成av人片一区二区三区| 精品国精品自拍自在线| 粉嫩aⅴ一区二区三区四区五区| 一区二区三区成人| 日韩欧美国产小视频| 国产成人激情av| 亚洲图片欧美综合| 精品久久久久久综合日本欧美| 成人做爰69片免费看网站| 夜夜嗨av一区二区三区网页| 日韩美女主播在线视频一区二区三区 | 1024成人网| 欧美一区二区三区在线视频| 粉嫩13p一区二区三区| 五月婷婷激情综合网| 久久久国产午夜精品| 欧亚洲嫩模精品一区三区| 久久av资源网| 一区二区三区四区乱视频| 日韩免费看的电影| 91久久精品一区二区三区| 久久国产精品99久久人人澡| 亚洲人成在线播放网站岛国| 日韩亚洲欧美中文三级| 99九九99九九九视频精品| 美女脱光内衣内裤视频久久网站| 中文字幕在线视频一区| 欧美一区二区黄| 色综合天天视频在线观看| 国产精一品亚洲二区在线视频| 亚洲制服欧美中文字幕中文字幕| 国产日韩欧美精品在线| 欧美日韩国产一级二级| 91在线观看高清| 国产乱码精品1区2区3区| 舔着乳尖日韩一区| 亚洲同性gay激情无套| 久久综合九色综合欧美亚洲|