public class MultipartFileResource
extends org.springframework.core.io.AbstractResource
| 构造器和说明 |
|---|
MultipartFileResource(org.springframework.web.multipart.MultipartFile multipartFile) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
contentLength() |
boolean |
equals(Object other) |
boolean |
exists() |
String |
getDescription() |
String |
getFilename() |
InputStream |
getInputStream() |
int |
hashCode() |
boolean |
isOpen() |
public MultipartFileResource(org.springframework.web.multipart.MultipartFile multipartFile)
public boolean exists()
exists 在接口中 org.springframework.core.io.Resourceexists 在类中 org.springframework.core.io.AbstractResourcepublic boolean isOpen()
isOpen 在接口中 org.springframework.core.io.ResourceisOpen 在类中 org.springframework.core.io.AbstractResourcepublic long contentLength()
contentLength 在接口中 org.springframework.core.io.ResourcecontentLength 在类中 org.springframework.core.io.AbstractResourcepublic String getFilename()
getFilename 在接口中 org.springframework.core.io.ResourcegetFilename 在类中 org.springframework.core.io.AbstractResourcepublic InputStream getInputStream() throws IOException, IllegalStateException
public String getDescription()
public boolean equals(Object other)
equals 在类中 org.springframework.core.io.AbstractResourcepublic int hashCode()
hashCode 在类中 org.springframework.core.io.AbstractResourceCopyright © 2021. All rights reserved.