类 ServletPartMultipartFile
java.lang.Object
cn.taketoday.web.multipart.support.AbstractMultipart
cn.taketoday.web.multipart.support.AbstractMultipartFile
cn.taketoday.web.multipart.support.ServletPartMultipartFile
- 所有已实现的接口:
cn.taketoday.core.io.InputStreamSource,Multipart,MultipartFile,Serializable
MultipartFile adapter, wrapping a Servlet Part object.
- 从以下版本开始:
- 2018-06-28 22:40:32
- 作者:
- TODAY
-
字段概要
字段从类继承的字段 cn.taketoday.web.multipart.support.AbstractMultipartFile
cachedBytes从类继承的字段 cn.taketoday.web.multipart.support.AbstractMultipart
headers -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected DefaultHttpHeadersvoiddelete()Deletes the underlying storage for a file item, including deleting any associated temporary disk file.protected byte[]booleanReturn the content type of the file.getName()Gets the name of this partReturn the original filename in the client's filesystem.Get original resourcelonggetSize()Return the size of the file in bytes.inthashCode()booleanisEmpty()Return whether the uploaded file is empty, that is, either no file has been chosen in the multipart form or the chosen file has no content.protected voidsaveInternal(File dest) voidtransferTo(Path dest) Transfer the received file to the given destination file.从类继承的方法 cn.taketoday.web.multipart.support.AbstractMultipartFile
getBytes, getValue, isFormField, transferTo从类继承的方法 cn.taketoday.web.multipart.support.AbstractMultipart
getHeaders从接口继承的方法 cn.taketoday.core.io.InputStreamSource
getReader, getReader, readableChannel从接口继承的方法 cn.taketoday.web.multipart.Multipart
getHeaders, getValue, isFormField从接口继承的方法 cn.taketoday.web.multipart.MultipartFile
getBytes, getResource, transferTo
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
part
-
filename
-
-
构造器详细资料
-
ServletPartMultipartFile
-
ServletPartMultipartFile
-
-
方法详细资料
-
getInputStream
- 指定者:
getInputStream在接口中cn.taketoday.core.io.InputStreamSource- 抛出:
IOException
-
getContentType
从接口复制的说明:MultipartFileReturn the content type of the file.- 指定者:
getContentType在接口中MultipartFile- 返回:
- the content type, or
nullif not defined (or no file has been chosen in the multipart form)
-
getSize
public long getSize()从接口复制的说明:MultipartFileReturn the size of the file in bytes.- 指定者:
getSize在接口中MultipartFile- 返回:
- the size of the file, or 0 if empty
-
getName
Gets the name of this part- 指定者:
getName在接口中Multipart- 指定者:
getName在接口中MultipartFile- 返回:
- The name of this part as a String
-
createHttpHeaders
- 覆盖:
createHttpHeaders在类中AbstractMultipart
-
getOriginalFilename
Return the original filename in the client's filesystem.- 指定者:
getOriginalFilename在接口中MultipartFile- 返回:
- the original filename, or the empty String if no file has been chosen
in the multipart form, or
nullif not defined or not available - 另请参阅:
-
saveInternal
- 指定者:
saveInternal在类中AbstractMultipartFile- 抛出:
IOException
-
transferTo
从接口复制的说明:MultipartFileTransfer the received file to the given destination file.The default implementation simply copies the file input stream.
- 指定者:
transferTo在接口中MultipartFile- 抛出:
IOExceptionIllegalStateException- 另请参阅:
-
InputStreamSource.getInputStream()MultipartFile.transferTo(File)
-
isEmpty
public boolean isEmpty()从接口复制的说明:MultipartFileReturn whether the uploaded file is empty, that is, either no file has been chosen in the multipart form or the chosen file has no content.- 指定者:
isEmpty在接口中MultipartFile
-
doGetBytes
- 指定者:
doGetBytes在类中AbstractMultipartFile- 抛出:
IOException
-
hashCode
public int hashCode() -
equals
-
getOriginalResource
从接口复制的说明:MultipartFileGet original resource- 指定者:
getOriginalResource在接口中MultipartFile- 返回:
- Original resource
-
delete
从接口复制的说明:MultipartFileDeletes the underlying storage for a file item, including deleting any associated temporary disk file.- 指定者:
delete在接口中Multipart- 指定者:
delete在接口中MultipartFile- 抛出:
IOException- if an error occurs.
-