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

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

?? fileitem.java

?? java servlet著名論壇源代碼
?? JAVA
字號:
/*
 * $Header: /cvsroot/mvnforum/myvietnam/src/net/myvietnam/mvncore/fileupload/FileItem.java,v 1.2 2002/11/26 03:25:58 minhnn Exp $
 * $Revision: 1.2 $
 * $Date: 2002/11/26 03:25:58 $
 *
 * ====================================================================
 *
 * The Apache Software License, Version 1.1
 *
 * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
 * reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution, if
 *    any, must include the following acknowlegement:
 *       "This product includes software developed by the
 *        Apache Software Foundation (http://www.apache.org/)."
 *    Alternately, this acknowlegement may appear in the software itself,
 *    if and wherever such third-party acknowlegements normally appear.
 *
 * 4. The names "The Jakarta Project", "Commons", and "Apache Software
 *    Foundation" must not be used to endorse or promote products derived
 *    from this software without prior written permission. For written
 *    permission, please contact apache@apache.org.
 *
 * 5. Products derived from this software may not be called "Apache"
 *    nor may "Apache" appear in their names without prior written
 *    permission of the Apache Group.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of the Apache Software Foundation.  For more
 * information on the Apache Software Foundation, please see
 * <http://www.apache.org/>.
 *
 */


package net.myvietnam.mvncore.fileupload;


import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;


/**
 * <p> This class represents a file or form item that was received within a
 * <code>multipart/form-data</code> POST request.
 *
 * <p> After retrieving an instance of this class from a {@link
 * net.myvietnam.mvncore.fileupload.FileUpload FileUpload} instance (see
 * {@link net.myvietnam.mvncore.fileupload.FileUpload
 * #parseRequest(javax.servlet.http.HttpServletRequest)}), you may
 * either request all contents of file at once using {@link #get()} or
 * request an {@link java.io.InputStream InputStream} with
 * {@link #getInputStream()} and process the file without attempting to load
 * it into memory, which may come handy with large files.
 *
 * <p> While this interface does not extend
 * <code>javax.activation.DataSource</code> per se (to avoid a seldom used
 * dependency), several of the defined methods are specifically defined with
 * the same signatures as methods in that interface. This allows an
 * implementation of this interface to also implement
 * <code>javax.activation.DataSource</code> with minimal additional work.
 *
 * @author <a href="mailto:Rafal.Krzewski@e-point.pl">Rafal Krzewski</a>
 * @author <a href="mailto:sean@informage.net">Sean Legassick</a>
 * @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
 * @author <a href="mailto:martinc@apache.org">Martin Cooper</a>
 *
 * @version $Id: FileItem.java,v 1.2 2002/11/26 03:25:58 minhnn Exp $
 */
public interface FileItem
{


    // ------------------------------- Methods from javax.activation.DataSource


    /**
     * Returns an {@link java.io.InputStream InputStream} that can be
     * used to retrieve the contents of the file.
     *
     * @return An {@link java.io.InputStream InputStream} that can be
     *         used to retrieve the contents of the file.
     *
     * @exception IOException if an error occurs.
     */
    InputStream getInputStream()
        throws IOException;


    /**
     * Returns the content type passed by the browser or <code>null</code> if
     * not defined.
     *
     * @return The content type passed by the browser or <code>null</code> if
     *         not defined.
     */
    String getContentType();


    /**
     * Returns the original filename in the client's filesystem.
     *
     * @return The original filename in the client's filesystem.
     */
    String getName();


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


    /**
     * The maximal size of request that will have it's elements stored
     * in memory.
     */
    public static final int DEFAULT_UPLOAD_SIZE_THRESHOLD = 10240;


    // ------------------------------------------------------- FileItem methods


    /**
     * Provides a hint as to whether or not the file contents will be read
     * from memory.
     *
     * @return <code>true</code> if the file contents will be read
     *         from memory.
     */
    boolean isInMemory();


    /**
     * Returns the size of the file.
     *
     * @return The size of the file, in bytes.
     */
    long getSize();


    /**
     * Returns the contents of the file as an array of bytes.  If the
     * contents of the file were not yet cached in memory, they will be
     * loaded from the disk storage and cached.
     *
     * @return The contents of the file as an array of bytes.
     */
    byte[] get();


    /**
     * Returns the contents of the file as a String, using the specified
     * encoding.  This method uses {@link #get()} to retrieve the
     * contents of the file.
     *
     * @param encoding The character encoding to use.
     *
     * @return The contents of the file, as a string.
     *
     * @exception UnsupportedEncodingException if the requested character
     *                                         encoding is not available.
     */
    String getString(String encoding)
        throws UnsupportedEncodingException;


    /**
     * Returns the contents of the file as a String, using the default
     * character encoding.  This method uses {@link #get()} to retrieve the
     * contents of the file.
     *
     * @return The contents of the file, as a string.
     */
    String getString();


    /**
     * Returns the {@link java.io.File} object for the <code>FileItem</code>'s
     * data's temporary location on the disk. Note that for
     * <code>FileItem</code>s that have their data stored in memory,
     * this method will return <code>null</code>. When handling large
     * files, you can use {@link java.io.File#renameTo(File)} to
     * move the file to new location without copying the data, if the
     * source and destination locations reside within the same logical
     * volume.
     *
     * @return The data file, or <code>null</code> if the data is stored in
     *         memory.
     */
    File getStoreLocation();


    /**
     * A convenience method to write an uploaded file to disk. The client code
     * is not concerned whether or not the file is stored in memory, or on disk
     * in a temporary location. They just want to write the uploaded file to
     * disk.
     *
     * @param file The full path to location where the uploaded file should
     *             be stored.
     *
     * @exception Exception if an error occurs.
     */
    void write(String file) throws Exception;


    /**
     * Deletes the underlying storage for a file item, including deleting any
     * associated temporary disk file. Although this storage will be deleted
     * automatically when the <code>FileItem</code> instance is garbage
     * collected, this method can be used to ensure that this is done at an
     * earlier time, thus preserving system resources.
     */
    void delete();


    /**
     * Returns the name of the field in the multipart form corresponding to
     * this file item.
     *
     * @return The name of the form field.
     */
    String getFieldName();


    /**
     * Sets the field name used to reference this file item.
     *
     * @param name The name of the form field.
     */
    void setFieldName(String name);


    /**
     * Determines whether or not a <code>FileItem</code> instance represents
     * a simple form field.
     *
     * @return <code>true</code> if the instance represents a simple form
     *         field; <code>false</code> if it represents an uploaded file.
     */
    boolean isFormField();


    /**
     * Specifies whether or not a <code>FileItem</code> instance represents
     * a simple form field.
     *
     * @param state <code>true</code> if the instance represents a simple form
     *              field; <code>false</code> if it represents an uploaded file.
     */
    void setIsFormField(boolean state);

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
高清成人免费视频| 亚洲五码中文字幕| 亚洲精选免费视频| 精品一区二区av| 欧美日韩一区小说| 日韩理论片在线| 国产一区二区免费看| 51久久夜色精品国产麻豆| 中文字幕乱码久久午夜不卡| 免费成人在线播放| 欧美日本韩国一区二区三区视频 | **网站欧美大片在线观看| 奇米777欧美一区二区| 欧美性生活一区| 亚洲视频在线观看三级| 国产91色综合久久免费分享| 成人综合婷婷国产精品久久| 亚洲黄色在线视频| 91精品国产综合久久久久| 午夜久久久久久久久久一区二区| 亚洲精品视频在线| 不卡的av中国片| 国产欧美综合在线| 国产福利不卡视频| 2019国产精品| 国产98色在线|日韩| 久久这里都是精品| 国产福利91精品| 久久一区二区视频| 国产精品一区二区91| 国产精品视频在线看| 国产精品影音先锋| 国产拍揄自揄精品视频麻豆| 精品一区二区在线免费观看| 精品久久国产97色综合| 极品少妇xxxx精品少妇偷拍 | 麻豆成人在线观看| 4hu四虎永久在线影院成人| 日韩一区精品视频| 精品日韩一区二区| 国产一区二区导航在线播放| 国产丝袜美腿一区二区三区| 成人亚洲一区二区一| 最新国产精品久久精品| 色综合天天综合网国产成人综合天| 国产精品二三区| 欧美亚洲日本一区| 天天综合色天天综合| 日韩欧美国产三级| 国产一区三区三区| |精品福利一区二区三区| 欧美在线不卡一区| 久久99久久久久久久久久久| 国产丝袜在线精品| 在线影视一区二区三区| 蜜臀精品久久久久久蜜臀 | 国内精品写真在线观看| 一区二区三区精品| 中文字幕精品一区二区精品绿巨人 | 日本在线不卡视频一二三区| 2023国产一二三区日本精品2022| www.久久久久久久久| 性欧美大战久久久久久久久| 日韩一区二区三区四区| 国产69精品久久99不卡| 一区二区三区不卡视频 | 欧美午夜一区二区| 国产做a爰片久久毛片| 国产精品每日更新在线播放网址 | 欧美亚洲一区二区在线观看| www.色综合.com| 91精品国产免费久久综合| 日本不卡视频一二三区| 中文字幕精品三区| 欧美一级片在线观看| 成人黄色av网站在线| 天堂影院一区二区| 国产精品污www在线观看| 欧美日韩精品一区二区| 成人av网站大全| 免费av网站大全久久| 亚洲精品国产第一综合99久久| 日韩一卡二卡三卡国产欧美| 91亚洲国产成人精品一区二区三| 亚洲一二三四久久| 国产精品免费网站在线观看| 日韩一区二区视频在线观看| 色狠狠色噜噜噜综合网| 成人性生交大片免费看视频在线| 久久国产精品99精品国产| 亚洲成在人线免费| 亚洲蜜臀av乱码久久精品| 久久久午夜电影| 欧美一级片在线看| 欧美精品tushy高清| 91视频国产资源| 国产成人综合亚洲91猫咪| 美国三级日本三级久久99| 亚洲一区二区在线观看视频 | 欧美一区二区三区男人的天堂| 99久久精品国产观看| 国产a精品视频| 欧美性一二三区| 亚洲摸摸操操av| 精品盗摄一区二区三区| 91精品国产全国免费观看| 欧美中文字幕亚洲一区二区va在线 | 一本久久a久久免费精品不卡| 国产美女娇喘av呻吟久久| 久久精品av麻豆的观看方式| 婷婷久久综合九色综合伊人色| 亚洲精品国产精华液| 亚洲综合另类小说| 亚洲影视在线播放| 亚洲超碰97人人做人人爱| 丝袜脚交一区二区| 视频一区二区三区入口| 天天色天天操综合| 日韩av中文在线观看| 麻豆91精品视频| 国内久久精品视频| 成人在线综合网站| 国产在线视频精品一区| 成人免费av在线| 国产最新精品精品你懂的| 欧美精品色一区二区三区| 国产综合久久久久久鬼色| 国产一区二区伦理片| 国产福利视频一区二区三区| 成人的网站免费观看| 欧洲精品中文字幕| 日韩一卡二卡三卡| 日本一二三四高清不卡| 亚洲日本在线看| 丝袜美腿亚洲一区二区图片| 国产又黄又大久久| 99热在这里有精品免费| 色狠狠av一区二区三区| 日韩精品一区二区三区老鸭窝| 欧美国产激情一区二区三区蜜月| 综合久久国产九一剧情麻豆| 日本在线不卡视频| 成人性视频免费网站| 欧美美女直播网站| 久久久久久99精品| 亚洲午夜精品网| 狠狠色丁香久久婷婷综合_中| 成人午夜精品一区二区三区| 欧美优质美女网站| 国产欧美一区二区三区沐欲 | 91精品在线免费观看| 久久综合999| 亚洲综合色噜噜狠狠| 国产美女在线精品| 欧美日韩一区二区三区不卡| 2欧美一区二区三区在线观看视频| 亚洲婷婷在线视频| 精品一区二区三区在线播放| 色欧美片视频在线观看| 久久综合五月天婷婷伊人| 亚洲一区二区三区四区不卡 | 美女视频黄免费的久久| 99精品偷自拍| 精品国产免费一区二区三区四区 | 午夜精品一区二区三区免费视频| 国产一区日韩二区欧美三区| 在线精品视频免费观看| 国产精品欧美精品| 国产精品影视在线| 日韩免费观看高清完整版在线观看| 亚洲欧洲韩国日本视频| 国产中文一区二区三区| 欧美精品黑人性xxxx| 亚洲精品国产第一综合99久久 | 久久综合九色综合久久久精品综合 | 国产精品69毛片高清亚洲| 欧美一区二区三区四区五区| 亚洲欧美另类久久久精品2019| 国产成人精品免费一区二区| 日韩精品一区二区三区在线观看| 亚洲特黄一级片| 成人黄色电影在线 | 91在线免费播放| 国产欧美日韩另类一区| 国内精品在线播放| 欧美va天堂va视频va在线| 天堂影院一区二区| 91精品综合久久久久久| 日韩精品福利网| 欧美日韩免费观看一区二区三区| 亚洲男女毛片无遮挡| 91免费版在线| 亚洲男同性恋视频| 91小视频免费看| 亚洲色图在线看| 一本色道亚洲精品aⅴ| 亚洲精品高清视频在线观看| 99久久精品免费看国产| 亚洲精品videosex极品| 91美女蜜桃在线|