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

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

?? fileitem.java

?? 解觖java技術中后臺無法上傳數給的情況
?? JAVA
字號:
/*
 * Copyright 2001-2005 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;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Serializable;
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
 * org.apache.commons.fileupload.FileUpload FileUpload} instance (see
 * {@link org.apache.commons.fileupload.FileUpload
 * #parseRequest(javax.servlet.http.HttpServletRequest)}), you may
 * either request all contents of the 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 2006/02/12 04:43:11 minhnn Exp $
 */
public interface FileItem
    extends Serializable {


    // ------------------------------- 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.
     *
     * @throws 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, as provided by
     * the browser (or other client software). In most cases, this will be the
     * base file name, without path information. However, some clients, such as
     * the Opera browser, do include path information.
     *
     * @return The original filename in the client's filesystem.
     */
    String getName();


    // ------------------------------------------------------- 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;
     *         <code>false</code> otherwise.
     */
    boolean isInMemory();


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


    /**
     * Returns the contents of the file item as an array of bytes.
     *
     * @return The contents of the file item as an array of bytes.
     */
    byte[] get();


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


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


    /**
     * A convenience method to write an uploaded item to disk. The client code
     * is not concerned with whether or not the item is stored in memory, or on
     * disk in a temporary location. They just want to write the uploaded item
     * to a file.
     * <p>
     * This method is not guaranteed to succeed if called more than once for
     * the same item. This allows a particular implementation to use, for
     * example, file renaming, where possible, rather than copying all of the
     * underlying data, thus gaining a significant performance benefit.
     *
     * @param file The <code>File</code> into which the uploaded item should
     *             be stored.
     *
     * @throws Exception if an error occurs.
     */
    void write(File 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 setFormField(boolean state);


    /**
     * Returns an {@link java.io.OutputStream OutputStream} that can
     * be used for storing the contents of the file.
     *
     * @return An {@link java.io.OutputStream OutputStream} that can be used
     *         for storing the contensts of the file.
     *
     * @throws IOException if an error occurs.
     */
    OutputStream getOutputStream() throws IOException;

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产综合久久久蜜臀图片| 国产真实乱偷精品视频免| 久久久国产综合精品女国产盗摄| 日韩精品一区二区在线观看| 欧美老肥妇做.爰bbww| 欧美自拍偷拍一区| 欧美日韩一二三区| 欧美喷潮久久久xxxxx| 欧美视频完全免费看| 7777精品伊人久久久大香线蕉的 | 色综合天天综合网天天看片| 成人黄色在线网站| 成人午夜精品一区二区三区| 成人综合日日夜夜| 91免费国产在线观看| 欧美四级电影网| 日韩一区二区三区电影| 久久噜噜亚洲综合| 国产精品久久久久久久久果冻传媒| 1区2区3区国产精品| 亚洲福利一区二区| 蜜桃视频一区二区三区在线观看| 久久99精品久久久久久久久久久久| 麻豆精品一区二区av白丝在线| 国产精品自产自拍| 91亚洲国产成人精品一区二区三| 日本道色综合久久| 日韩三级视频在线观看| 国产欧美日韩激情| 亚洲一区电影777| 久久草av在线| 91丨porny丨蝌蚪视频| 欧美绝品在线观看成人午夜影视| xf在线a精品一区二区视频网站| 国产精品青草久久| 日日夜夜精品免费视频| 国产成人一区二区精品非洲| 欧洲av在线精品| 久久久久亚洲综合| 亚洲一区视频在线| 风流少妇一区二区| 欧美一区午夜精品| 亚洲欧美中日韩| 久久爱www久久做| 日本福利一区二区| 国产精品免费网站在线观看| 日韩精品免费专区| 成人a免费在线看| 日韩精品中午字幕| 亚洲成人综合在线| 不卡的av在线播放| 久久久午夜精品| 视频一区二区三区入口| 91一区在线观看| 国产亚洲欧美日韩俺去了| 午夜精品爽啪视频| 欧美性猛交xxxx黑人交| 国产精品毛片久久久久久久| 国产真实乱子伦精品视频| 欧美一区二区私人影院日本| 亚洲黄色av一区| 丁香亚洲综合激情啪啪综合| 精品日本一线二线三线不卡| 五月激情六月综合| 欧美亚洲国产一区二区三区| 亚洲欧洲国产日韩| 97超碰欧美中文字幕| 国产无遮挡一区二区三区毛片日本| 蜜乳av一区二区| 精品国产精品网麻豆系列| 99久久er热在这里只有精品15| 26uuu久久天堂性欧美| 成人黄色片在线观看| 国产伦精品一区二区三区免费| 中文字幕在线不卡一区二区三区| 国产欧美在线观看一区| 亚洲成人动漫av| 欧美性猛交xxxx黑人交| 亚洲精品中文字幕乱码三区| 91免费在线播放| 亚洲综合无码一区二区| 欧美探花视频资源| 五月天久久比比资源色| 91精品国产手机| 麻豆极品一区二区三区| 精品第一国产综合精品aⅴ| 久久精品国产一区二区三| 欧美va亚洲va| 国产a久久麻豆| 综合欧美亚洲日本| 欧洲视频一区二区| 午夜精品成人在线视频| 欧美一区二区三区性视频| 久久国产尿小便嘘嘘尿| 久久精品亚洲乱码伦伦中文| 国产成人午夜精品影院观看视频| 国产视频一区二区在线| 99精品热视频| 亚洲丶国产丶欧美一区二区三区| 欧美一区日本一区韩国一区| 精品综合久久久久久8888| 国产精品女主播在线观看| 一本大道久久精品懂色aⅴ| 亚洲h在线观看| 亚洲精品一区二区三区精华液| 成人精品gif动图一区| 亚洲精品高清在线| 欧美大片一区二区| 成人国产亚洲欧美成人综合网 | 成人永久免费视频| 亚洲精选一二三| 精品久久久影院| 色诱视频网站一区| 国产做a爰片久久毛片| 一区二区三区高清不卡| 精品国产网站在线观看| 99国产一区二区三精品乱码| 日本午夜一区二区| 亚洲丝袜精品丝袜在线| 精品乱人伦小说| 在线观看国产91| 不卡一区中文字幕| 另类小说一区二区三区| 亚洲精品国产无天堂网2021| 久久网站最新地址| 9191久久久久久久久久久| caoporm超碰国产精品| 另类小说色综合网站| 一区二区三区在线免费视频 | 成人影视亚洲图片在线| 日本成人在线不卡视频| 中文字幕一区二区三区四区不卡 | 日本美女视频一区二区| 中文字幕一区免费在线观看| 日韩一二三区视频| 在线观看日产精品| 波波电影院一区二区三区| 精品影视av免费| 天天综合天天综合色| 亚洲免费观看高清完整版在线观看| 精品欧美久久久| 日韩一二在线观看| 日韩欧美国产系列| 欧美一区二区视频观看视频| 欧美三级日韩在线| 在线精品视频免费播放| 91福利在线导航| 色综合久久久久久久久| 99久久99精品久久久久久| 成人综合婷婷国产精品久久蜜臀| 国产成人鲁色资源国产91色综| 蜜臀久久99精品久久久久宅男| 日韩中文字幕麻豆| 性久久久久久久| 爽好多水快深点欧美视频| 性感美女极品91精品| 午夜成人免费视频| 午夜精品在线视频一区| 美女一区二区三区在线观看| 免费观看在线色综合| 麻豆91精品视频| 久久精品久久精品| 国产成人在线影院| av亚洲精华国产精华精华 | 亚洲综合偷拍欧美一区色| 亚洲综合免费观看高清在线观看| 亚洲精品水蜜桃| 亚洲成va人在线观看| 九九**精品视频免费播放| 国产精品69毛片高清亚洲| 成人激情图片网| 91成人看片片| 69堂国产成人免费视频| 欧美成人女星排名| 欧美国产精品一区| 亚洲一区视频在线| 日韩二区三区四区| 黄色精品一二区| 成人精品电影在线观看| 欧美日韩中文字幕精品| 日韩欧美三级在线| 国产精品久久看| 亚洲午夜精品久久久久久久久| 五月天中文字幕一区二区| 美女精品自拍一二三四| 成人免费观看男女羞羞视频| 色妞www精品视频| 欧美亚州韩日在线看免费版国语版| 91麻豆精品国产| 亚洲国产精品精华液2区45| 一区二区三区成人| 美女免费视频一区| 91蝌蚪porny成人天涯| 欧美日韩高清在线| 日本一区二区免费在线观看视频 | 老司机精品视频一区二区三区| 国产a精品视频| 欧美一区二区免费视频| 中文字幕 久热精品 视频在线| 日韩成人伦理电影在线观看|