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

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

?? diskfileitemfactory.java

?? < JavaME核心技術最佳實踐>>的全部源代碼
?? 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 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> * * @author <a href="mailto:martinc@apache.org">Martin Cooper</a> * * @since FileUpload 1.1 * * @version $Id: DiskFileItemFactory.java 155417 2005-02-26 13:00:27Z dirkv $ */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一区二区三区免费野_久草精品视频
亚洲美女在线国产| 久88久久88久久久| 国产欧美精品国产国产专区| 91豆麻精品91久久久久久| 成人激情电影免费在线观看| 国产露脸91国语对白| 久久电影网电视剧免费观看| 天天av天天翘天天综合网| 亚洲欧美激情视频在线观看一区二区三区| 日韩理论片在线| 中文字幕不卡的av| 国产精品久久久久桃色tv| 国产调教视频一区| 久久精品欧美一区二区三区不卡| 精品av久久707| 久久久亚洲国产美女国产盗摄| 亚洲欧美日韩国产综合在线| 亚洲午夜日本在线观看| 美女精品自拍一二三四| 国产精品亚洲一区二区三区妖精| 色综合久久综合| 色噜噜狠狠色综合中国| 亚洲综合视频网| 亚洲成人福利片| 亚洲三级在线免费| 国产人成一区二区三区影院| 亚洲精品国产视频| 国产成人av资源| 91香蕉国产在线观看软件| a在线欧美一区| 欧美视频一区在线观看| 日韩视频一区在线观看| 精品乱码亚洲一区二区不卡| 中文字幕中文字幕一区| 亚洲成人精品在线观看| 美女性感视频久久| 成人福利视频在线看| 欧美手机在线视频| 精品福利一二区| 亚洲乱码一区二区三区在线观看| 依依成人综合视频| 蜜臀av在线播放一区二区三区| 国产精品1区2区3区在线观看| 色欧美片视频在线观看| 久久综合久久鬼色中文字| 亚洲欧美日韩一区二区| 蜜臀av一区二区在线观看| 成人午夜又粗又硬又大| 欧美无人高清视频在线观看| 欧美精品一区二区三区蜜桃| 中文字幕在线不卡国产视频| 蜜桃视频第一区免费观看| 白白色 亚洲乱淫| 欧美酷刑日本凌虐凌虐| 亚洲欧洲韩国日本视频 | 日韩欧美另类在线| 一区二区三区在线不卡| 9i在线看片成人免费| 久久精品视频在线看| 免费成人性网站| 欧美性猛交xxxx黑人交| 国产精品第13页| 国产精品 欧美精品| 欧美日产国产精品| 亚洲中国最大av网站| 成人一二三区视频| 国产午夜亚洲精品不卡| 国内精品在线播放| 日韩欧美一卡二卡| 青青草原综合久久大伊人精品 | 久久久午夜精品| 精品一区二区在线观看| 欧美美女一区二区| 亚洲国产毛片aaaaa无费看| 在线国产电影不卡| 一个色妞综合视频在线观看| 色天天综合久久久久综合片| 亚洲小少妇裸体bbw| 欧美性一级生活| 亚洲国产精品一区二区www在线| 欧美在线免费观看视频| 亚洲国产综合在线| 717成人午夜免费福利电影| 午夜成人免费视频| 日韩午夜av电影| 国产一区二区在线影院| 亚洲国产精品精华液ab| av亚洲精华国产精华精| 一区二区高清免费观看影视大全| 欧美专区日韩专区| 日韩va欧美va亚洲va久久| 欧美精品一区二区蜜臀亚洲| 国产剧情一区在线| 最新中文字幕一区二区三区 | 国产剧情一区在线| 亚洲人成网站在线| 精品视频123区在线观看| 免费看精品久久片| 亚洲国产经典视频| 欧美视频在线播放| 精品在线播放免费| 中文字幕视频一区| 欧美剧情片在线观看| 国产精品伊人色| 亚洲国产日韩综合久久精品| 欧美tickling挠脚心丨vk| 成人性生交大片免费| 亚洲国产日韩综合久久精品| 久久精品亚洲精品国产欧美| 欧美影院精品一区| 国产成人av影院| 日韩不卡一区二区| 最近中文字幕一区二区三区| 日韩小视频在线观看专区| 99精品欧美一区二区三区综合在线| 视频在线观看国产精品| 亚洲精品中文在线观看| 国产欧美日韩综合精品一区二区| 欧美日韩中字一区| 99精品久久免费看蜜臀剧情介绍| 老司机精品视频一区二区三区| 一区二区三区四区精品在线视频| 久久网站最新地址| 91精品国产一区二区三区 | 精品污污网站免费看| 国产成人高清在线| 狠狠久久亚洲欧美| 婷婷夜色潮精品综合在线| 成人免费一区二区三区在线观看| 激情丁香综合五月| 青青草原综合久久大伊人精品 | 精品一区二区国语对白| 亚洲第一二三四区| 亚洲欧美国产毛片在线| 国产精品久久久久婷婷| 国产精品丝袜在线| 日本一区二区三区电影| 国产三区在线成人av| 国产亚洲一区字幕| 国产日韩欧美激情| 国产日产亚洲精品系列| 国产偷国产偷精品高清尤物 | 欧美精品自拍偷拍动漫精品| 欧美日韩亚洲高清一区二区| 欧美影视一区在线| 91精选在线观看| 三级久久三级久久| 老鸭窝一区二区久久精品| 国内精品久久久久影院色| 激情综合色综合久久| 国产精品一区一区| 成人国产在线观看| 欧美自拍偷拍一区| 欧美一二三在线| 国产亚洲va综合人人澡精品 | 一区二区三区在线高清| 日日摸夜夜添夜夜添精品视频| 秋霞午夜av一区二区三区| 精品中文av资源站在线观看| 粉嫩绯色av一区二区在线观看| 91免费看片在线观看| 欧美福利视频一区| 久久婷婷色综合| 一区二区欧美在线观看| 免费观看成人av| 99视频国产精品| 欧美精品乱码久久久久久按摩| 日韩免费一区二区| 中文字幕在线一区| 视频一区免费在线观看| 高清视频一区二区| 欧美精品在线观看一区二区| 国产精品美女一区二区三区 | 在线免费观看日韩欧美| 日韩三级伦理片妻子的秘密按摩| 国产精品日韩成人| 奇米精品一区二区三区四区| 成人av电影在线网| 日韩视频一区二区三区在线播放| 中文字幕一区二区三区乱码在线| 秋霞成人午夜伦在线观看| 日本高清成人免费播放| 26uuu成人网一区二区三区| 亚洲精品视频一区二区| 国产一区在线看| 日韩视频免费观看高清完整版 | 国产一区二区看久久| 91精品国产色综合久久不卡电影 | 日韩电影在线观看电影| 91精品国产一区二区| 亚洲美女视频在线| 国产精品系列在线观看| 91精品国产综合久久福利软件 | 国产精品久久久久影院色老大 | 日韩二区在线观看| 欧美色视频在线观看| 国产精品久久久久久福利一牛影视| 麻豆国产精品视频| 欧美一级片免费看| 天天色图综合网|