diff options
author | Emmanuel Bourg <ebourg@apache.org> | 2016-08-02 11:13:32 +0200 |
---|---|---|
committer | Emmanuel Bourg <ebourg@apache.org> | 2016-08-02 11:13:32 +0200 |
commit | f69f2a4b8ea697b3a631c0dc7a470e3c9793fee3 (patch) | |
tree | db2f25b29aa3e59c463ab41d3f2856f6265bb1a5 /spring-web/src/main/java/org/springframework/web/multipart/MultipartFile.java | |
parent | 5575b60c30c5a0c308c4ba3a2db93956d8c1746c (diff) |
Imported Upstream version 4.2.6
Diffstat (limited to 'spring-web/src/main/java/org/springframework/web/multipart/MultipartFile.java')
-rw-r--r-- | spring-web/src/main/java/org/springframework/web/multipart/MultipartFile.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spring-web/src/main/java/org/springframework/web/multipart/MultipartFile.java b/spring-web/src/main/java/org/springframework/web/multipart/MultipartFile.java index 4d4a0450..6097bd39 100644 --- a/spring-web/src/main/java/org/springframework/web/multipart/MultipartFile.java +++ b/spring-web/src/main/java/org/springframework/web/multipart/MultipartFile.java @@ -20,6 +20,8 @@ import java.io.File; import java.io.IOException; import java.io.InputStream; +import org.springframework.core.io.InputStreamSource; + /** * A representation of an uploaded file received in a multipart request. * @@ -34,7 +36,7 @@ import java.io.InputStream; * @see org.springframework.web.multipart.MultipartHttpServletRequest * @see org.springframework.web.multipart.MultipartResolver */ -public interface MultipartFile { +public interface MultipartFile extends InputStreamSource { /** * Return the name of the parameter in the multipart form. @@ -84,6 +86,7 @@ public interface MultipartFile { * @return the contents of the file as stream, or an empty stream if empty * @throws IOException in case of access errors (if the temporary store fails) */ + @Override InputStream getInputStream() throws IOException; /** |