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

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

?? diskfileitemfactory.java

?? 解觖java技術中后臺無法上傳數給的情況
?? JAVA
字號:
/*
 * Copyright 2001-2004 The Apache Software Foundation
 *
 * Licensed 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 net.myvietnam.mvncore.web.fileupload.disk;

import java.io.File;

import net.myvietnam.mvncore.web.fileupload.FileItem;
import net.myvietnam.mvncore.web.fileupload.FileItemFactory;

/**
 * <p>The default {@link org.apache.commons.fileupload.FileItemFactory}
 * implementation. This implementation creates
 * {@link org.apache.commons.fileupload.FileItem} instances which keep their
 * content either in memory, for smaller items, or in a temporary file on disk,
 * for larger items. The size threshold, above which content will be stored on
 * disk, is configurable, as is the directory in which temporary files will be
 * created.</p>
 *
 * <p>If not otherwise configured, the default configuration values are as
 * follows:
 * <ul>
 *   <li>Size threshold is 10KB.</li>
 *   <li>Repository is the system default temp directory, as returned by
 *       <code>System.getProperty("java.io.tmpdir")</code>.</li>
 * </ul>
 * </p>
 *
 * @author <a href="mailto:martinc@apache.org">Martin Cooper</a>
 *
 * @since FileUpload 1.1
 *
 * @version $Id: DiskFileItemFactory.java,v 1.2 2006/02/12 04:43:11 minhnn Exp $
 */
public class DiskFileItemFactory implements FileItemFactory {

    // ----------------------------------------------------- Manifest constants


    /**
     * The default threshold above which uploads will be stored on disk.
     */
    public static final int DEFAULT_SIZE_THRESHOLD = 10240;


    // ----------------------------------------------------- Instance Variables


    /**
     * The directory in which uploaded files will be stored, if stored on disk.
     */
    private File repository;


    /**
     * The threshold above which uploads will be stored on disk.
     */
    private int sizeThreshold = DEFAULT_SIZE_THRESHOLD;


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


    /**
     * Constructs an unconfigured instance of this class. The resulting factory
     * may be configured by calling the appropriate setter methods.
     */
    public DiskFileItemFactory() {
    }


    /**
     * Constructs a preconfigured instance of this class.
     *
     * @param sizeThreshold The threshold, in bytes, below which items will be
     *                      retained in memory and above which they will be
     *                      stored as a file.
     * @param repository    The data repository, which is the directory in
     *                      which files will be created, should the item size
     *                      exceed the threshold.
     */
    public DiskFileItemFactory(int sizeThreshold, File repository) {
        this.sizeThreshold = sizeThreshold;
        this.repository = repository;
    }


    // ------------------------------------------------------------- Properties


    /**
     * Returns the directory used to temporarily store files that are larger
     * than the configured size threshold.
     *
     * @return The directory in which temporary files will be located.
     *
     * @see #setRepository(java.io.File)
     *
     */
    public File getRepository() {
        return repository;
    }


    /**
     * Sets the directory used to temporarily store files that are larger
     * than the configured size threshold.
     *
     * @param repository The directory in which temporary files will be located.
     *
     * @see #getRepository()
     *
     */
    public void setRepository(File repository) {
        this.repository = repository;
    }


    /**
     * Returns the size threshold beyond which files are written directly to
     * disk. The default value is 1024 bytes.
     *
     * @return The size threshold, in bytes.
     *
     * @see #setSizeThreshold(int)
     */
    public int getSizeThreshold() {
        return sizeThreshold;
    }


    /**
     * Sets the size threshold beyond which files are written directly to disk.
     *
     * @param sizeThreshold The size threshold, in bytes.
     *
     * @see #getSizeThreshold()
     *
     */
    public void setSizeThreshold(int sizeThreshold) {
        this.sizeThreshold = sizeThreshold;
    }


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

    /**
     * Create a new {@link org.apache.commons.fileupload.disk.DiskFileItem}
     * instance from the supplied parameters and the local factory
     * configuration.
     *
     * @param fieldName   The name of the form field.
     * @param contentType The content type of the form field.
     * @param isFormField <code>true</code> if this is a plain form field;
     *                    <code>false</code> otherwise.
     * @param fileName    The name of the uploaded file, if any, as supplied
     *                    by the browser or other client.
     *
     * @return The newly created file item.
     */
    public FileItem createItem(
            String fieldName,
            String contentType,
            boolean isFormField,
            String fileName
            ) {
        return new DiskFileItem(fieldName, contentType,
                isFormField, fileName, sizeThreshold, repository);
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
97久久久精品综合88久久| 91免费看片在线观看| 婷婷开心久久网| 91视频观看视频| 国产精品对白交换视频| 日韩精品一区在线观看| 欧美视频在线一区二区三区| 91麻豆自制传媒国产之光| 国产成人亚洲综合a∨婷婷图片| 国产综合一区二区| 麻豆成人av在线| 久久99久久99| 国内精品视频666| 国产不卡高清在线观看视频| 成人ar影院免费观看视频| 91色综合久久久久婷婷| 欧美在线999| 日韩一区二区麻豆国产| 日韩美女视频在线| 久久久久久免费网| 中文字幕第一区第二区| 亚洲免费视频成人| 亚洲v精品v日韩v欧美v专区| 免费高清成人在线| 成人黄色片在线观看| 色婷婷av一区| 欧美日韩精品一区二区| 日韩免费视频一区| ...av二区三区久久精品| 亚洲在线免费播放| 麻豆精品国产91久久久久久| 成人一级片网址| 欧美中文字幕一区二区三区| 欧美大片一区二区三区| 国产精品福利一区二区三区| 婷婷夜色潮精品综合在线| 国产精品一区二区在线观看不卡| 成人免费视频网站在线观看| 在线亚洲欧美专区二区| 日韩免费观看高清完整版在线观看| 久久久影视传媒| 亚洲乱码国产乱码精品精的特点| 久久国产日韩欧美精品| 91视频精品在这里| 久久久久久久精| 天天影视色香欲综合网老头| hitomi一区二区三区精品| 91精品国产欧美日韩| 欧美一区二区视频免费观看| 欧美亚洲国产一区在线观看网站| 日韩一区二区三区三四区视频在线观看 | 色综合色综合色综合色综合色综合| 久久久另类综合| 欧美一级欧美三级| 中文字幕在线视频一区| 六月丁香综合在线视频| 色偷偷成人一区二区三区91| 久久久精品综合| 麻豆91小视频| 欧美精品色一区二区三区| 亚洲黄色在线视频| 国产不卡在线一区| 久久综合久色欧美综合狠狠| 五月婷婷综合网| 欧美中文字幕亚洲一区二区va在线| 国产色91在线| 久久国产精品99精品国产 | 色噜噜狠狠色综合欧洲selulu| 精品毛片乱码1区2区3区| 日韩电影在线免费观看| 欧美日韩亚洲另类| 香蕉影视欧美成人| 欧美在线看片a免费观看| 一区二区三区中文字幕精品精品| 99re这里都是精品| 亚洲女人****多毛耸耸8| 97se亚洲国产综合自在线观| 国产精品天干天干在线综合| 国产不卡视频在线观看| 国产精品日日摸夜夜摸av| 国产91对白在线观看九色| 精品久久人人做人人爽| 国产一区二区三区在线观看免费 | 色综合一区二区三区| 中文字幕在线不卡视频| 成人黄色软件下载| 亚洲人妖av一区二区| 色网站国产精品| 视频一区二区三区在线| 日韩午夜小视频| 国产精品综合av一区二区国产馆| 久久久www成人免费无遮挡大片| 国产成人综合视频| 1区2区3区精品视频| 97久久精品人人澡人人爽| 久久久午夜电影| 99视频在线精品| 五月婷婷综合在线| 久久久精品日韩欧美| 成人免费毛片app| 一区二区三区久久| 欧美大胆人体bbbb| 成人精品国产福利| 午夜精品视频在线观看| 欧美变态凌虐bdsm| 91在线观看成人| 亚洲第一成人在线| 国产亚洲va综合人人澡精品| 91色.com| 精品一二线国产| 一区二区三区四区乱视频| 884aa四虎影成人精品一区| 国产资源精品在线观看| 亚洲日本欧美天堂| 欧美精品一区二区精品网| 91在线视频官网| 久草热8精品视频在线观看| 国产精品女人毛片| 日韩视频在线你懂得| 97成人超碰视| 国产麻豆精品在线| 五月综合激情网| 国产精品嫩草影院av蜜臀| 91麻豆精品91久久久久同性| www.av精品| 国产一区视频网站| 日韩高清一区二区| 亚洲精品网站在线观看| 国产清纯美女被跳蛋高潮一区二区久久w| 久久丝袜美腿综合| 91麻豆国产福利在线观看| 不卡高清视频专区| 奇米在线7777在线精品| 亚洲激情六月丁香| 日韩美女视频一区| 韩国av一区二区| 日韩不卡免费视频| 亚洲综合999| 日本一区二区三区电影| 欧美一卡2卡3卡4卡| 99久久精品免费看国产| 国产成人日日夜夜| 韩国一区二区在线观看| 天堂一区二区在线| 亚洲一区二区综合| 亚洲精品中文字幕在线观看| 国产精品久久久久久久久搜平片| 久久久久久久久一| 久久综合久久综合九色| 欧美一区二区女人| 91精品欧美福利在线观看| 欧美人与性动xxxx| 欧美日本一道本在线视频| 欧美日韩aaaaaa| 欧美丰满少妇xxxxx高潮对白| 在线观看av不卡| 在线观看免费一区| 99久久精品久久久久久清纯| 亚洲资源中文字幕| 亚洲国产精品一区二区久久| 尤物在线观看一区| 亚洲mv在线观看| 日韩精品一二三区| 蜜臀久久久久久久| 国产在线一区二区综合免费视频| 国产一区二区不卡在线 | 中文字幕在线观看不卡| 亚洲色图视频免费播放| 亚洲精品一卡二卡| 天天色图综合网| 亚洲欧美日本在线| 精品欧美乱码久久久久久| 精品av久久707| 中文一区在线播放| 亚洲三级理论片| 日韩精品欧美精品| 国产美女主播视频一区| aaa欧美大片| 91精品国产欧美一区二区18| 久久人人爽人人爽| 亚洲欧美日韩在线| 日韩av电影免费观看高清完整版在线观看 | 久久久99久久| 福利电影一区二区| 欧美日韩国产精选| 日韩欧美成人激情| 中文在线资源观看网站视频免费不卡| 亚洲精品视频一区二区| 欧美综合一区二区| 91欧美一区二区| 日韩欧美国产一二三区| 中文字幕在线一区二区三区| 偷偷要91色婷婷| 成人午夜激情视频| 欧美二区三区的天堂| 久久影院视频免费| 亚洲成年人网站在线观看| 国产福利精品一区| 欧美日本一道本在线视频| 国产拍欧美日韩视频二区|