|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface is used to define a file uploaded by a client.
| Method Summary | |
void |
destroy()
Destroy all content for this form file. |
java.lang.String |
getContentType()
Get the content type for this file. |
byte[] |
getFileData()
Get the data in byte array for for this file. |
java.lang.String |
getFileName()
Get the file name of this file. |
int |
getFileSize()
Get the size of this file |
java.io.InputStream |
getInputStream()
Get an InputStream that represents this file. |
void |
setContentType(java.lang.String contentType)
Set the content type for this file |
void |
setFileName(java.lang.String fileName)
Set the filename of this file |
void |
setFileSize(int filesize)
Set the file size |
| Method Detail |
public java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType - The content typepublic int getFileSize()
public void setFileSize(int filesize)
filesize - An int reprsenting the size of the file in bytespublic java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName - The name of the file
public byte[] getFileData()
throws java.io.FileNotFoundException,
java.io.IOException
getInputStream to get the file
data.java.io.FileNotFoundException - If some sort of file representation
cannot be found for the FormFilejava.io.IOException - If there is some sort of IOException
public java.io.InputStream getInputStream()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundException - If some sort of file representation
cannot be found for the FormFilejava.io.IOException - If there is some sort of IOExceptionpublic void destroy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||