public class MultipartFileWrapper extends Object implements org.springframework.web.multipart.MultipartFile
| 构造器和说明 |
|---|
MultipartFileWrapper(org.springframework.web.multipart.MultipartFile multipartFile) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
getBytes() |
String |
getContentType() |
InputStream |
getInputStream() |
String |
getName() |
String |
getOriginalFilename() |
org.springframework.core.io.Resource |
getResource() |
long |
getSize() |
boolean |
isEmpty() |
void |
transferTo(File dest) |
void |
transferTo(Path dest) |
public MultipartFileWrapper(org.springframework.web.multipart.MultipartFile multipartFile)
public String getName()
getName 在接口中 org.springframework.web.multipart.MultipartFilepublic String getOriginalFilename()
getOriginalFilename 在接口中 org.springframework.web.multipart.MultipartFile@Nullable public String getContentType()
getContentType 在接口中 org.springframework.web.multipart.MultipartFilepublic boolean isEmpty()
isEmpty 在接口中 org.springframework.web.multipart.MultipartFilepublic long getSize()
getSize 在接口中 org.springframework.web.multipart.MultipartFilepublic byte[] getBytes()
throws IOException
getBytes 在接口中 org.springframework.web.multipart.MultipartFileIOExceptionpublic InputStream getInputStream() throws IOException
getInputStream 在接口中 org.springframework.core.io.InputStreamSourcegetInputStream 在接口中 org.springframework.web.multipart.MultipartFileIOExceptionpublic org.springframework.core.io.Resource getResource()
getResource 在接口中 org.springframework.web.multipart.MultipartFilepublic void transferTo(File dest) throws IOException, IllegalStateException
transferTo 在接口中 org.springframework.web.multipart.MultipartFileIOExceptionIllegalStateExceptionpublic void transferTo(Path dest) throws IOException, IllegalStateException
transferTo 在接口中 org.springframework.web.multipart.MultipartFileIOExceptionIllegalStateExceptionCopyright © 2022. All rights reserved.