FileItem.java
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:1k
- package com.gamvan.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;
- public interface FileItem extends Serializable{
- InputStream getInputStream() throws IOException;
- String getContentType();
- String getName();
- boolean isInMemory();
- long getSize();
- byte[] get();
- String getString(String encoding) throws UnsupportedEncodingException;
- String getString();
- void write(File file) throws Exception;
- void delete();
- String getFieldName();
- void setFieldName(String name);
- boolean isFormField();
- void setFormField(boolean state);
- OutputStream getOutputStream() throws IOException;
-
-
-
-
- }