Class SimpleMultipartFileReader
java.lang.Object
org.springframework.integration.http.multipart.SimpleMultipartFileReader
- All Implemented Interfaces:
- MultipartFileReader<Object>
MultipartFileReader implementation that does not maintain metadata from
 the original MultipartFile instance. Instead this simply reads the file
 content directly as either a String or byte array depending on the Content-Type.- Since:
- 2.0
- Author:
- Mark Fisher, Gary Russell
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionreadMultipartFile(MultipartFile multipartFile) ReadMultipartFilecontent.voidsetDefaultMultipartCharset(String defaultCharset) Specify the default charset name to use when converting multipart file content into Strings if the multipart itself does not provide a charset.
- 
Constructor Details- 
SimpleMultipartFileReaderpublic SimpleMultipartFileReader()
 
- 
- 
Method Details- 
setDefaultMultipartCharsetSpecify the default charset name to use when converting multipart file content into Strings if the multipart itself does not provide a charset.- Parameters:
- defaultCharset- The default charset.
 
- 
readMultipartFileDescription copied from interface:MultipartFileReaderReadMultipartFilecontent.- Specified by:
- readMultipartFilein interface- MultipartFileReader<Object>
- Parameters:
- multipartFile- The multipart file.
- Returns:
- The result of reading the file.
- Throws:
- IOException- Any IOException.
 
 
-