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.FormFile
public void setContentType(String contentType)
setContentType
in interface org.apache.struts.upload.FormFile
public byte[] getFileData() throws FileNotFoundException, IOException
getFileData
in interface org.apache.struts.upload.FormFile
FileNotFoundException
IOException
public String getFileName()
getFileName
in interface org.apache.struts.upload.FormFile
public void setFileName(String fileName)
setFileName
in interface org.apache.struts.upload.FormFile
public int getFileSize()
getFileSize
in interface org.apache.struts.upload.FormFile
public void setFileSize(int fileSize)
setFileSize
in interface org.apache.struts.upload.FormFile
public InputStream getInputStream() throws FileNotFoundException, IOException
getInputStream
in interface org.apache.struts.upload.FormFile
FileNotFoundException
IOException
public void destroy()
destroy
in interface org.apache.struts.upload.FormFile
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.