|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines an uploaded file.
Method Summary | |
void |
destroy()
Destroy all content for this form file. |
java.lang.String |
getContentType()
Get the content type 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 sContentType)
Set the content type for this file |
void |
setFileName(java.lang.String sFileName)
Set the filename of this file |
void |
setFileSize(int nFileSize)
Set the file size |
Method Detail |
public java.lang.String getContentType()
public void setContentType(java.lang.String sContentType)
sContentType
- The content typepublic int getFileSize()
public void setFileSize(int nFileSize)
nFileSize
- an int reprsenting the size of the file in bytespublic java.lang.String getFileName()
public void setFileName(java.lang.String sFileName)
sFileName
- the name of the filepublic java.io.InputStream getInputStream() throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
- ff some sort of file representation
cannot be found for the FormFilejava.io.IOException
- ff there is some sort of IOExceptionpublic void destroy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |