类 MultipartFileResource
java.lang.Object
cn.taketoday.core.io.AbstractResource
cn.taketoday.web.multipart.MultipartFileResource
- 所有已实现的接口:
cn.taketoday.core.io.InputStreamSource,cn.taketoday.core.io.Resource
class MultipartFileResource
extends cn.taketoday.core.io.AbstractResource
Adapt
MultipartFile to Resource,
exposing the content as InputStream and also overriding
contentLength() as well as getName().- 从以下版本开始:
- 4.0 2022/4/2 11:58
- 作者:
- Rossen Stoyanchev, Harry Yang
- 另请参阅:
-
字段概要
字段从接口继承的字段 cn.taketoday.core.io.Resource
EMPTY_ARRAY -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明longbooleanbooleanexists()This implementation always returnstrue.This implementation throws IllegalStateException if attempting to read the underlying stream multiple times.getName()inthashCode()booleanisOpen()This implementation always returnstrue.toString()This implementation returns a description that has the Multipart name.从类继承的方法 cn.taketoday.core.io.AbstractResource
createRelative, customizeConnection, customizeConnection, getFile, getFileForLastModifiedCheck, getURI, getURL, isDirectory, isFile, isReadable, lastModified, list, list从接口继承的方法 cn.taketoday.core.io.InputStreamSource
getReader, getReader, readableChannel从接口继承的方法 cn.taketoday.core.io.Resource
getContentAsByteArray, getContentAsString
-
字段详细资料
-
multipartFile
-
-
构造器详细资料
-
MultipartFileResource
-
-
方法详细资料
-
exists
public boolean exists()This implementation always returnstrue.- 指定者:
exists在接口中cn.taketoday.core.io.Resource- 覆盖:
exists在类中cn.taketoday.core.io.AbstractResource
-
isOpen
public boolean isOpen()This implementation always returnstrue.- 指定者:
isOpen在接口中cn.taketoday.core.io.Resource- 覆盖:
isOpen在类中cn.taketoday.core.io.AbstractResource
-
contentLength
public long contentLength()- 指定者:
contentLength在接口中cn.taketoday.core.io.Resource- 覆盖:
contentLength在类中cn.taketoday.core.io.AbstractResource
-
getName
- 指定者:
getName在接口中cn.taketoday.core.io.Resource- 覆盖:
getName在类中cn.taketoday.core.io.AbstractResource
-
getInputStream
This implementation throws IllegalStateException if attempting to read the underlying stream multiple times. -
toString
This implementation returns a description that has the Multipart name.- 指定者:
toString在接口中cn.taketoday.core.io.Resource- 覆盖:
toString在类中cn.taketoday.core.io.AbstractResource
-
equals
- 覆盖:
equals在类中cn.taketoday.core.io.AbstractResource
-
hashCode
public int hashCode()- 覆盖:
hashCode在类中cn.taketoday.core.io.AbstractResource
-