public class SimpleMultipartFileReader extends java.lang.Object implements MultipartFileReader<java.lang.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.Constructor and Description |
---|
SimpleMultipartFileReader() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
readMultipartFile(org.springframework.web.multipart.MultipartFile multipartFile)
Reads
MultipartFile content. |
void |
setDefaultMultipartCharset(java.lang.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.
|
public void setDefaultMultipartCharset(java.lang.String defaultCharset)
public java.lang.Object readMultipartFile(org.springframework.web.multipart.MultipartFile multipartFile) throws java.io.IOException
MultipartFileReader
MultipartFile
content.readMultipartFile
in interface MultipartFileReader<java.lang.Object>
java.io.IOException