|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.tinygroup.weblayer.webcontext.parser.fileupload.TinyFileItem
public class TinyFileItem
功能说明: tiny保存的文件项
系统版本: v1.0
开发人员: renhui
开发时间: 2014-1-2
功能描述: 写明作用,调用方式,使用场景,以及特殊情况
| 字段摘要 | |
|---|---|
static String |
DEFAULT_CHARSET
Default content charset to be used when no explicit charset parameter is provided by the sender. |
| 构造方法摘要 | |
|---|---|
TinyFileItem(String fieldName,
String contentType,
boolean isFormField,
String fileName,
FileItemStorage storage)
|
|
| 方法摘要 | |
|---|---|
void |
delete()
|
byte[] |
get()
|
String |
getCharset()
取得当前field的字符集编码。 |
String |
getContentType()
|
String |
getFieldName()
|
InputStream |
getInputStream()
|
String |
getName()
|
OutputStream |
getOutputStream()
|
long |
getSize()
|
String |
getString()
|
String |
getString(String encoding)
|
String |
getUnique()
|
boolean |
isFormField()
|
boolean |
isInMemory()
|
void |
setCharset(String charset)
设置当前field的字符集编码。 |
void |
setFieldName(String name)
|
void |
setFormField(boolean state)
|
void |
setUnique(String unique)
|
void |
storage()
调用存储接口 |
String |
toString()
Returns a string representation of this object. |
void |
write(File file)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public static final String DEFAULT_CHARSET
| 构造方法详细信息 |
|---|
public TinyFileItem(String fieldName,
String contentType,
boolean isFormField,
String fileName,
FileItemStorage storage)
| 方法详细信息 |
|---|
public InputStream getInputStream()
throws IOException
org.apache.commons.fileupload.FileItem 中的 getInputStreamIOExceptionpublic String getContentType()
org.apache.commons.fileupload.FileItem 中的 getContentTypepublic String getName()
org.apache.commons.fileupload.FileItem 中的 getNamepublic boolean isInMemory()
org.apache.commons.fileupload.FileItem 中的 isInMemorypublic long getSize()
org.apache.commons.fileupload.FileItem 中的 getSizepublic byte[] get()
org.apache.commons.fileupload.FileItem 中的 get
public String getString(String encoding)
throws UnsupportedEncodingException
org.apache.commons.fileupload.FileItem 中的 getStringUnsupportedEncodingExceptionpublic String getString()
org.apache.commons.fileupload.FileItem 中的 getString
public void write(File file)
throws Exception
org.apache.commons.fileupload.FileItem 中的 writeExceptionpublic void storage()
public void delete()
org.apache.commons.fileupload.FileItem 中的 deletepublic String getFieldName()
org.apache.commons.fileupload.FileItem 中的 getFieldNamepublic void setFieldName(String name)
org.apache.commons.fileupload.FileItem 中的 setFieldNamepublic boolean isFormField()
org.apache.commons.fileupload.FileItem 中的 isFormFieldpublic void setFormField(boolean state)
org.apache.commons.fileupload.FileItem 中的 setFormField
public OutputStream getOutputStream()
throws IOException
org.apache.commons.fileupload.FileItem 中的 getOutputStreamIOExceptionpublic String getCharset()
public void setCharset(String charset)
public String getUnique()
public void setUnique(String unique)
public String toString()
Object 中的 toString
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||