org.slim3.struts.upload
Class S3MultipartRequestHandler.S2FormFile

java.lang.Object
  extended by 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

Constructor Summary
S3MultipartRequestHandler.S2FormFile(org.apache.commons.fileupload.FileItem fileItem)
          Constructor
 
Method Summary
 void destroy()
           
protected  String getBaseFileName(String filePath)
          Returns the base file name.
 String getContentType()
           
 byte[] getFileData()
           
 String getFileName()
           
 int getFileSize()
           
 InputStream getInputStream()
           
 void setContentType(String contentType)
           
 void setFileName(String fileName)
           
 void setFileSize(int filesize)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

S3MultipartRequestHandler.S2FormFile

public S3MultipartRequestHandler.S2FormFile(org.apache.commons.fileupload.FileItem fileItem)
Constructor

Parameters:
fileItem - the file item
Method Detail

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.