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

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

?? diskfileitemfactory.java

?? apache commons-fileupload-1.2.jar
?? 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.fileupload.disk;import java.io.File;import org.apache.commons.fileupload.FileItem;import org.apache.commons.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> * * <p>When using the <code>DiskFileItemFactory</code>, then you should * consider the following: Temporary files are automatically deleted as * soon as they are no longer needed. (More precisely, when the * corresponding instance of {@link java.io.File} is garbage collected.) * This is done by the so-called reaper thread, which is started * automatically when the class {@link org.apache.commons.io.FileCleaner} * is loaded. It might make sense to terminate that thread, for example, * if your web application ends. See the section on "Resource cleanup" * in the users guide of commons-fileupload.</p> * * @author <a href="mailto:martinc@apache.org">Martin Cooper</a> * * @since FileUpload 1.1 * * @version $Id: DiskFileItemFactory.java 502350 2007-02-01 20:42:48Z jochen $ */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() {        // Does nothing.    }    /**     * 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 10240 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一区二区三区免费野_久草精品视频
欧美aaaaaa午夜精品| 精品久久久久久久久久久院品网 | 亚洲国产成人在线| 国产日产欧美一区| 樱花草国产18久久久久| 五月激情综合网| 国产一区在线观看视频| av一区二区三区黑人| 欧美色视频一区| 精品伦理精品一区| 久久99精品久久久久| 波多野结衣一区二区三区| 久久色在线观看| 亚洲黄色片在线观看| 91麻豆免费观看| 久久久久久久久久久久电影| 亚洲一区电影777| 国产精品18久久久久久久网站| 欧美日韩国产一区| 国产三级一区二区| 日韩vs国产vs欧美| 在线视频你懂得一区| 久久久久久一级片| 国产成人精品午夜视频免费| 欧美福利视频导航| ...中文天堂在线一区| 日韩精品电影一区亚洲| 97久久久精品综合88久久| 久久伊人中文字幕| 国产激情一区二区三区桃花岛亚洲| 久久夜色精品国产噜噜av| 国产精品1区2区3区在线观看| 久久精品网站免费观看| 丁香啪啪综合成人亚洲小说| 欧美一区二区人人喊爽| 亚洲日穴在线视频| 成人午夜av在线| 日韩毛片在线免费观看| 色婷婷综合久久久| 国产精品乱码一区二区三区软件| 极品少妇xxxx精品少妇| 国产欧美日韩视频在线观看| 91色婷婷久久久久合中文| 亚洲最大成人网4388xx| 91一区二区在线| 亚洲超碰97人人做人人爱| 91在线码无精品| 夜夜爽夜夜爽精品视频| 欧美一级视频精品观看| 国产老肥熟一区二区三区| 国产精品毛片无遮挡高清| 色噜噜狠狠色综合中国| 亚洲欧洲一区二区在线播放| 欧美午夜一区二区| 洋洋成人永久网站入口| 欧美一区二区播放| 国产91精品在线观看| 久久精品视频一区二区| 91在线无精精品入口| 五月激情综合色| 国产欧美一区二区三区在线看蜜臀 | 欧美日韩在线精品一区二区三区激情 | 国产成人免费9x9x人网站视频| 国产视频在线观看一区二区三区| 成人av影视在线观看| 久久网站热最新地址| 不卡电影一区二区三区| 一个色在线综合| 欧美一区午夜精品| 国产精品1024| 亚洲精选视频在线| 69堂成人精品免费视频| 国产精品福利一区| 国内精品伊人久久久久影院对白| 色先锋aa成人| 天涯成人国产亚洲精品一区av| 久久尤物电影视频在线观看| 成人在线综合网站| 亚洲成人在线免费| 久久久蜜桃精品| 色婷婷亚洲一区二区三区| 亚洲中国最大av网站| 日韩一区二区三区在线视频| 日韩中文字幕区一区有砖一区| 欧美精品一区二区三区高清aⅴ | 中文字幕一区二区三区av| 欧美在线你懂的| 日韩电影一二三区| 国产色91在线| 欧美精品v日韩精品v韩国精品v| 国产永久精品大片wwwapp| 亚洲视频一区二区在线观看| 91精品在线一区二区| 国产白丝精品91爽爽久久| 午夜精品在线看| 国产日韩欧美精品电影三级在线| 国产suv精品一区二区三区 | 久久先锋资源网| 91福利国产精品| 精品一区二区三区日韩| 亚洲三级免费观看| 精品入口麻豆88视频| 91性感美女视频| 狠狠色丁香婷婷综合| 一个色妞综合视频在线观看| 久久久久国产成人精品亚洲午夜| 色综合久久66| 国产精品一区二区久久精品爱涩| 亚洲国产一二三| 欧美性感一区二区三区| 高清beeg欧美| 日韩黄色免费电影| 综合久久给合久久狠狠狠97色| 精品国产麻豆免费人成网站| 色av成人天堂桃色av| 国产成人无遮挡在线视频| 亚洲自拍另类综合| 亚洲欧美色综合| 日韩电影一区二区三区四区| 337p粉嫩大胆色噜噜噜噜亚洲| 久久精品99久久久| 精品国精品国产| 欧美日韩亚洲不卡| 成人精品免费网站| 久久av老司机精品网站导航| 亚洲mv大片欧洲mv大片精品| 国产亲近乱来精品视频| 久久久噜噜噜久噜久久综合| 91 com成人网| 欧美伊人久久久久久午夜久久久久| 国产99一区视频免费| 国产成+人+日韩+欧美+亚洲| 看片网站欧美日韩| 一区二区三区四区中文字幕| 久久久99久久精品欧美| 欧美日本乱大交xxxxx| 91一区二区在线| 丁香亚洲综合激情啪啪综合| 精品一区二区日韩| 日本亚洲免费观看| 天堂蜜桃91精品| 国产精品沙发午睡系列990531| 2欧美一区二区三区在线观看视频| 7799精品视频| 欧美巨大另类极品videosbest| 波多野结衣精品在线| 国产精品资源在线看| 久久超级碰视频| 久久99精品国产91久久来源| 人人精品人人爱| 天天爽夜夜爽夜夜爽精品视频| 亚洲欧美区自拍先锋| 中文字幕中文乱码欧美一区二区 | 亚洲欧美aⅴ...| 色av一区二区| 成人av在线影院| 国产不卡在线一区| 男女男精品视频| 久久99精品一区二区三区三区| 爽好久久久欧美精品| 亚洲一级电影视频| 欧美日韩极品在线观看一区| 欧美日韩国产在线播放网站| 欧美性色aⅴ视频一区日韩精品| 日本高清视频一区二区| 99精品桃花视频在线观看| 国产福利91精品一区二区三区| 国产盗摄一区二区| av男人天堂一区| 色婷婷激情久久| 欧美日韩精品欧美日韩精品| 欧美日韩综合在线| 91成人网在线| 欧美日韩国产一区二区三区地区| 欧美性生活久久| 4438x成人网最大色成网站| 日韩一区二区视频| www国产精品av| 中文字幕av一区二区三区高| 国产精品久久久久毛片软件| 亚洲嫩草精品久久| 亚洲乱码日产精品bd| 亚洲精品国久久99热| 日韩在线一区二区| 国模大尺度一区二区三区| 成人国产精品免费| 色88888久久久久久影院野外| 欧美网站大全在线观看| 91激情在线视频| 日韩一区二区免费在线电影| 国产午夜亚洲精品不卡| 亚洲欧美日韩人成在线播放| 亚洲高清免费在线| 久久精品国产亚洲高清剧情介绍| 九九国产精品视频| 日本欧美在线观看| 国产ts人妖一区二区| 欧美午夜电影网| 久久久久久久久久久久电影 | 91看片淫黄大片一级|