|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--objectivehtml.struts.StrutsUploadedFile
This defines an uploaded file for the ohtml-struts framework.
Field Summary | |
protected org.apache.struts.upload.FormFile |
m_objFormFile
The reference to the struts FormFile object |
Constructor Summary | |
StrutsUploadedFile()
|
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 |
org.apache.struts.upload.FormFile |
getFormFile()
Get a reference to the struts FormFile object. |
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 |
protected void |
setFormFile(org.apache.struts.upload.FormFile objFormFile)
Set a reference to the struts FormFile object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.struts.upload.FormFile m_objFormFile
Constructor Detail |
public StrutsUploadedFile()
Method Detail |
public org.apache.struts.upload.FormFile getFormFile()
protected void setFormFile(org.apache.struts.upload.FormFile objFormFile)
sContentType
- The content typepublic java.lang.String getContentType()
getContentType
in interface UploadedFile
public void setContentType(java.lang.String sContentType)
setContentType
in interface UploadedFile
sContentType
- The content typepublic int getFileSize()
getFileSize
in interface UploadedFile
public void setFileSize(int nFileSize)
setFileSize
in interface UploadedFile
nFileSize
- an int reprsenting the size of the file in bytespublic java.lang.String getFileName()
getFileName
in interface UploadedFile
public void setFileName(java.lang.String sFileName)
setFileName
in interface UploadedFile
sFileName
- the name of the filepublic java.io.InputStream getInputStream() throws java.io.FileNotFoundException, java.io.IOException
getInputStream
in interface UploadedFile
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()
destroy
in interface UploadedFile
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |