org.slim3.struts.upload
Class S3MultipartRequestHandler.S2FormFile
java.lang.Object
org.slim3.struts.upload.S3MultipartRequestHandler.S2FormFile
- All Implemented Interfaces:
- Serializable, FormFile
- Enclosing class:
- S3MultipartRequestHandler
protected static class S3MultipartRequestHandler.S2FormFile
- extends Object
- implements FormFile, Serializable
FormFile
of Slim3.
- See Also:
- Serialized Form
S3MultipartRequestHandler.S2FormFile
public S3MultipartRequestHandler.S2FormFile(org.apache.commons.fileupload.FileItem fileItem)
- Constructor
- Parameters:
fileItem
- the file item
getContentType
public String getContentType()
- Specified by:
getContentType
in interface FormFile
setContentType
public void setContentType(String contentType)
- Specified by:
setContentType
in interface FormFile
getFileSize
public int getFileSize()
- Specified by:
getFileSize
in interface FormFile
setFileSize
public void setFileSize(int filesize)
- Specified by:
setFileSize
in interface FormFile
getFileName
public String getFileName()
- Specified by:
getFileName
in interface FormFile
setFileName
public void setFileName(String fileName)
- Specified by:
setFileName
in interface FormFile
getFileData
public byte[] getFileData()
throws FileNotFoundException,
IOException
- Specified by:
getFileData
in interface FormFile
- Throws:
FileNotFoundException
IOException
getInputStream
public InputStream getInputStream()
throws FileNotFoundException,
IOException
- Specified by:
getInputStream
in interface FormFile
- Throws:
FileNotFoundException
IOException
destroy
public void destroy()
- Specified by:
destroy
in interface FormFile
getBaseFileName
protected String getBaseFileName(String filePath)
- Returns the base file name.
- Parameters:
filePath
- the file path
- Returns:
- base file name
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008-2009 The Slim3 project. All Rights Reserved.