public class MockFormFile extends Object implements org.apache.struts.upload.FormFile
| Constructor and Description |
|---|
MockFormFile(File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
String |
getContentType() |
byte[] |
getFileData() |
String |
getFileName() |
int |
getFileSize() |
InputStream |
getInputStream() |
void |
setContentType(String contentType) |
void |
setFileName(String fileName) |
void |
setFileSize(int fileSize) |
String |
toString() |
public MockFormFile(File file)
public String getContentType()
getContentType in interface org.apache.struts.upload.FormFilepublic void setContentType(String contentType)
setContentType in interface org.apache.struts.upload.FormFilepublic byte[] getFileData() throws FileNotFoundException, IOException
getFileData in interface org.apache.struts.upload.FormFileFileNotFoundExceptionIOExceptionpublic String getFileName()
getFileName in interface org.apache.struts.upload.FormFilepublic void setFileName(String fileName)
setFileName in interface org.apache.struts.upload.FormFilepublic int getFileSize()
getFileSize in interface org.apache.struts.upload.FormFilepublic void setFileSize(int fileSize)
setFileSize in interface org.apache.struts.upload.FormFilepublic InputStream getInputStream() throws FileNotFoundException, IOException
getInputStream in interface org.apache.struts.upload.FormFileFileNotFoundExceptionIOExceptionpublic void destroy()
destroy in interface org.apache.struts.upload.FormFileCopyright © 2005–2016 The Kuali Foundation. All rights reserved.