|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormDataItem
Interface to represent an field item in multipart/form-data.
| Method Summary | |
|---|---|
byte[] |
get()
Returns the content of the field item. |
String |
getAsString()
Returns the content of the field item as text. |
String |
getContentType()
Returns the Content type of the field item. |
String |
getFieldName()
Field name of this field item. |
InputStream |
getInputStream()
Returns an InputStream from which the content of the field item can be read. |
String |
getName()
Name of the uploaded file, if the item represents file upload. |
long |
getSize()
The size of the content stored in this field item. |
boolean |
isFormField()
Used to identify if the field item represents a file upload or a regular form field. |
| Method Detail |
|---|
String getContentType()
long getSize()
InputStream getInputStream()
throws IOException
IOExceptionbyte[] get()
String getAsString()
String getName()
isFormField() returns false.
String getFieldName()
boolean isFormField()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||