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

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

?? diskfileitemfactory.java

?? Apache Commons FileUpload Copyright 2002-2008 The Apache Software Foundation This product includ
?? 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;import org.apache.commons.io.FileCleaningTracker;/** * <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.) * Cleaning up those files is done by an instance of * {@link FileCleaningTracker}, and an associated thread. In a complex * environment, for example in a web application, you should consider * terminating this thread, for example, when 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 607869 2008-01-01 16:42:17Z 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;    /**     * <p>The instance of {@link FileCleaningTracker}, which is responsible     * for deleting temporary files.</p>     * <p>May be null, if tracking files is not required.</p>     */    private FileCleaningTracker fileCleaningTracker;    // ----------------------------------------------------------- Constructors    /**     * Constructs an unconfigured instance of this class. The resulting factory     * may be configured by calling the appropriate setter methods.     */    public DiskFileItemFactory() {        this(DEFAULT_SIZE_THRESHOLD, null);    }    /**     * 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) {        DiskFileItem result = new DiskFileItem(fieldName, contentType,                isFormField, fileName, sizeThreshold, repository);        FileCleaningTracker tracker = getFileCleaningTracker();        if (tracker != null) {            tracker.track(result.getTempFile(), this);        }        return result;    }    /**     * Returns the tracker, which is responsible for deleting temporary     * files.     * @return An instance of {@link FileCleaningTracker}, defaults to     *   {@link org.apache.commons.io.FileCleaner#getInstance()}. Null,     *   if temporary files aren't tracked.     */    public FileCleaningTracker getFileCleaningTracker() {        return fileCleaningTracker;    }    /**     * Returns the tracker, which is responsible for deleting temporary     * files.     * @param pTracker An instance of {@link FileCleaningTracker},     *   which will from now on track the created files. May be null     *   to disable tracking.     */    public void setFileCleaningTracker(FileCleaningTracker pTracker) {        fileCleaningTracker = pTracker;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲福利一区二区三区| 精品少妇一区二区三区视频免付费| 91美女视频网站| 欧美中文字幕一区二区三区| 欧美成人猛片aaaaaaa| 夜夜嗨av一区二区三区| 亚洲va欧美va人人爽午夜| 日本在线不卡一区| 国产一区二区毛片| 972aa.com艺术欧美| 91精品中文字幕一区二区三区| 久久久久久电影| 一区二区久久久久久| 久久精品99国产国产精| 99免费精品视频| 91精品国产一区二区三区蜜臀| 国产精品无码永久免费888| 亚洲成av人片| 国产91露脸合集magnet| 欧美日韩国产影片| 中文av一区特黄| 日本成人在线看| 99久久99精品久久久久久| 日韩欧美不卡在线观看视频| 综合久久久久久久| 精品一区二区三区免费毛片爱| 91视频www| 久久精品人人爽人人爽| 香蕉乱码成人久久天堂爱免费| 国产成人无遮挡在线视频| 欧美精三区欧美精三区 | 极品少妇xxxx精品少妇| 一本高清dvd不卡在线观看| 欧美zozo另类异族| 午夜激情综合网| jvid福利写真一区二区三区| 欧美哺乳videos| 亚洲高清在线精品| 99精品在线观看视频| 久久九九久久九九| 奇米一区二区三区av| 在线这里只有精品| 国产精品色婷婷久久58| 卡一卡二国产精品| 欧美人妇做爰xxxⅹ性高电影| 国产精品久久久久久久久免费桃花| 黄一区二区三区| 欧美一区欧美二区| 污片在线观看一区二区| 欧美在线小视频| 中文字幕一区二区三区不卡在线| 精品一区二区三区在线观看| 91精品国产综合久久蜜臀| 亚洲一区二区三区不卡国产欧美 | 日韩美女啊v在线免费观看| 国模冰冰炮一区二区| 日韩欧美一卡二卡| 日韩av电影免费观看高清完整版在线观看 | 不卡的av中国片| 精品播放一区二区| 久久99久久精品| 日韩午夜在线播放| 日本视频免费一区| 欧美一级高清片在线观看| 午夜伊人狠狠久久| 欧美三级三级三级| 亚洲成a人片在线观看中文| 色噜噜狠狠成人中文综合| 国产精品久久久久久久久久久免费看| 国产成人在线免费观看| 久久网站热最新地址| 激情小说亚洲一区| 久久亚洲一区二区三区四区| 欧美自拍偷拍午夜视频| 国产精品国产a| 91麻豆国产香蕉久久精品| 一色桃子久久精品亚洲| 91视频免费看| 一区二区三区国产精华| 在线一区二区视频| 亚洲国产aⅴ天堂久久| 欧美高清dvd| 日韩国产欧美在线播放| 日韩你懂的在线观看| 黄页网站大全一区二区| 国产欧美一区二区精品秋霞影院 | 精品美女在线观看| 国产精品一区二区久激情瑜伽| 国产欧美精品一区二区三区四区| 国产99久久精品| 国产精品国产三级国产aⅴ入口| 91在线视频官网| 一级女性全黄久久生活片免费| 欧美日韩精品一区二区| 捆绑调教美女网站视频一区| 久久久精品天堂| fc2成人免费人成在线观看播放 | 欧美色欧美亚洲另类二区| 亚洲成国产人片在线观看| 欧美电影免费观看高清完整版在 | 国产精品欧美极品| 色婷婷综合视频在线观看| 亚洲成人免费av| 精品三级在线观看| av日韩在线网站| 亚洲国产成人精品视频| 日韩欧美在线1卡| 懂色中文一区二区在线播放| 亚洲美女视频在线| 欧美一区二区三区电影| 国产不卡免费视频| 亚洲一区二区三区四区在线观看 | 久久成人av少妇免费| 中文字幕av一区 二区| 色播五月激情综合网| 奇米色一区二区| 国产精品久久久爽爽爽麻豆色哟哟| 欧美在线不卡视频| 激情久久五月天| 亚洲精品视频自拍| 欧美tickling网站挠脚心| www.欧美.com| 日韩电影在线观看一区| 国产视频亚洲色图| 欧美少妇性性性| 丰满少妇久久久久久久| 亚洲国产日韩a在线播放| www国产精品av| 欧美亚洲动漫精品| 国产剧情一区在线| 亚洲一线二线三线久久久| 欧美精品一区二区久久婷婷| 日本电影亚洲天堂一区| 国产精品一品二品| 三级在线观看一区二区| 国产精品久久久久久久第一福利 | 波多野结衣91| 日韩不卡在线观看日韩不卡视频| 欧美国产日本韩| 日韩免费观看2025年上映的电影| 99在线精品一区二区三区| 久久精品国产在热久久| 亚洲一区二区av在线| 国产欧美日韩亚州综合| 日韩欧美另类在线| 色94色欧美sute亚洲13| 国产激情视频一区二区在线观看| 日韩avvvv在线播放| 亚洲欧美日韩国产一区二区三区| 久久久亚洲精品石原莉奈| 91精品国产高清一区二区三区| 日本道在线观看一区二区| 成人综合激情网| 久久91精品久久久久久秒播| 调教+趴+乳夹+国产+精品| 一区二区三区在线免费| 国产精品视频九色porn| 久久久久久久网| 欧美成人一区二区三区片免费 | 一区二区欧美国产| 国产精品每日更新在线播放网址| 欧美不卡视频一区| 欧美一级在线视频| 9191成人精品久久| 欧美性色黄大片| 色哦色哦哦色天天综合| 成人黄色小视频| 成人免费不卡视频| 国产一区二区三区久久久| 九九国产精品视频| 免费人成黄页网站在线一区二区| 亚洲成人精品影院| 亚洲电影在线播放| 亚洲在线成人精品| 一区二区三区四区高清精品免费观看 | 亚洲人一二三区| 国产精品黄色在线观看| 国产精品色呦呦| 国产精品免费视频一区| 欧美国产日韩一二三区| 中文字幕av一区 二区| 中文字幕 久热精品 视频在线 | 99久久国产综合精品色伊| 成人免费va视频| www.综合网.com| 91色综合久久久久婷婷| 91久久线看在观草草青青| 色老汉一区二区三区| 欧美在线小视频| 欧美高清激情brazzers| 91精品在线观看入口| 日韩一级二级三级精品视频| 日韩精品一区在线观看| 欧美成人一区二区三区| 久久久久9999亚洲精品| 国产精品你懂的在线欣赏| 亚洲人成精品久久久久久| 亚洲综合清纯丝袜自拍| 日韩高清在线不卡| 九九热在线视频观看这里只有精品|