org.tinygroup.weblayer.webcontext.parser.fileupload
public class TinyFileItem extends Object implements org.apache.commons.fileupload.FileItem
开发人员: renhui
开发时间: 2014-1-2
| Modifier and Type | Field and 描述 |
|---|---|
static String |
DEFAULT_CHARSET
Default content charset to be used when no explicit charset parameter is
provided by the sender.
|
| Constructor and 描述 |
|---|
TinyFileItem(String fieldName,
String contentType,
boolean isFormField,
String fileName,
FileItemStorage storage) |
| Modifier and Type | Method and 描述 |
|---|---|
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) |
public TinyFileItem(String fieldName, String contentType, boolean isFormField, String fileName, FileItemStorage storage)
public InputStream getInputStream() throws IOException
getInputStream 接口 {1} 中的 {0} org.apache.commons.fileupload.FileItemIOExceptionpublic String getContentType()
getContentType 接口 {1} 中的 {0} org.apache.commons.fileupload.FileItempublic String getName()
getName 接口 {1} 中的 {0} org.apache.commons.fileupload.FileItempublic boolean isInMemory()
isInMemory 接口 {1} 中的 {0} org.apache.commons.fileupload.FileItempublic long getSize()
getSize 接口 {1} 中的 {0} org.apache.commons.fileupload.FileItempublic byte[] get()
get 接口 {1} 中的 {0} org.apache.commons.fileupload.FileItempublic String getString(String encoding) throws UnsupportedEncodingException
getString 接口 {1} 中的 {0} org.apache.commons.fileupload.FileItemUnsupportedEncodingExceptionpublic String getString()
getString 接口 {1} 中的 {0} org.apache.commons.fileupload.FileItempublic void write(File file) throws Exception
write 接口 {1} 中的 {0} org.apache.commons.fileupload.FileItemExceptionpublic void storage()
public void delete()
delete 接口 {1} 中的 {0} org.apache.commons.fileupload.FileItempublic String getFieldName()
getFieldName 接口 {1} 中的 {0} org.apache.commons.fileupload.FileItempublic void setFieldName(String name)
setFieldName 接口 {1} 中的 {0} org.apache.commons.fileupload.FileItempublic boolean isFormField()
isFormField 接口 {1} 中的 {0} org.apache.commons.fileupload.FileItempublic void setFormField(boolean state)
setFormField 接口 {1} 中的 {0} org.apache.commons.fileupload.FileItempublic OutputStream getOutputStream() throws IOException
getOutputStream 接口 {1} 中的 {0} org.apache.commons.fileupload.FileItemIOExceptionpublic String getCharset()
public void setCharset(String charset)
public String getUnique()
public void setUnique(String unique)
Copyright © 2006–2015 TinyGroup. All rights reserved.