Class UploadedMultipartFile
java.lang.Object
org.springframework.integration.http.multipart.UploadedMultipartFile
- All Implemented Interfaces:
org.springframework.core.io.InputStreamSource
,org.springframework.web.multipart.MultipartFile
public class UploadedMultipartFile
extends Object
implements org.springframework.web.multipart.MultipartFile
A
MultipartFile
implementation that represents an uploaded File.
The actual file content either exists in memory (in a byte array) or in a File.- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionUploadedMultipartFile
(byte[] bytes, String contentType, String formParameterName, String originalFilename) UploadedMultipartFile
(File file, long size, String contentType, String formParameterName, String originalFilename) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.multipart.MultipartFile
getResource, transferTo
-
Constructor Details
-
UploadedMultipartFile
-
UploadedMultipartFile
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceorg.springframework.web.multipart.MultipartFile
-
getBytes
- Specified by:
getBytes
in interfaceorg.springframework.web.multipart.MultipartFile
- Throws:
IOException
-
getContentType
- Specified by:
getContentType
in interfaceorg.springframework.web.multipart.MultipartFile
-
getInputStream
- Specified by:
getInputStream
in interfaceorg.springframework.core.io.InputStreamSource
- Specified by:
getInputStream
in interfaceorg.springframework.web.multipart.MultipartFile
- Throws:
IOException
-
getOriginalFilename
- Specified by:
getOriginalFilename
in interfaceorg.springframework.web.multipart.MultipartFile
-
getSize
public long getSize()- Specified by:
getSize
in interfaceorg.springframework.web.multipart.MultipartFile
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceorg.springframework.web.multipart.MultipartFile
-
transferTo
- Specified by:
transferTo
in interfaceorg.springframework.web.multipart.MultipartFile
- Throws:
IOException
IllegalStateException
-