public class MultipartFileWrapper extends Object implements org.springframework.web.multipart.MultipartFile, Serializable
MultipartFile with
MultiPart| Constructor and Description |
|---|
MultipartFileWrapper(net.sourceforge.fastupload.MultiPart multiPart) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
String |
getOriginalFilename() |
long |
getSize() |
boolean |
isEmpty() |
void |
transferTo(File dest) |
public MultipartFileWrapper(net.sourceforge.fastupload.MultiPart multiPart)
public String getName()
getName in interface org.springframework.web.multipart.MultipartFilepublic String getOriginalFilename()
getOriginalFilename in interface org.springframework.web.multipart.MultipartFilepublic String getContentType()
getContentType in interface org.springframework.web.multipart.MultipartFilepublic boolean isEmpty()
isEmpty in interface org.springframework.web.multipart.MultipartFilepublic long getSize()
getSize in interface org.springframework.web.multipart.MultipartFilepublic byte[] getBytes()
throws IOException
getBytes in interface org.springframework.web.multipart.MultipartFileIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in interface org.springframework.web.multipart.MultipartFileIOExceptionpublic void transferTo(File dest) throws IOException, IllegalStateException
transferTo in interface org.springframework.web.multipart.MultipartFileIOExceptionIllegalStateExceptionCopyright © 2013. All Rights Reserved.