类 AbstractMultipartFile
java.lang.Object
cn.taketoday.web.multipart.support.AbstractMultipart
cn.taketoday.web.multipart.support.AbstractMultipartFile
- 所有已实现的接口:
cn.taketoday.core.io.InputStreamSource,Multipart,MultipartFile,Serializable
- 直接已知子类:
ServletPartMultipartFile
- 从以下版本开始:
- 3.0
- 作者:
- TODAY 2021/4/18 20:38
- 另请参阅:
-
字段概要
字段从类继承的字段 cn.taketoday.web.multipart.support.AbstractMultipart
headers -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected abstract byte[]byte[]getBytes()Returns the contents of the file item as an array of bytes.getValue()Return the form field value.booleanDetermines whether or not aMultipartinstance represents a simple form field.protected abstract voidsaveInternal(File dest) voidtransferTo(File dest) Transfer the received file to the given destination file.从类继承的方法 cn.taketoday.web.multipart.support.AbstractMultipart
createHttpHeaders, getHeaders从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.core.io.InputStreamSource
getInputStream, getReader, getReader, readableChannel从接口继承的方法 cn.taketoday.web.multipart.Multipart
getHeaders从接口继承的方法 cn.taketoday.web.multipart.MultipartFile
delete, getContentType, getName, getOriginalFilename, getOriginalResource, getResource, getSize, isEmpty, transferTo
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
cachedBytes
protected byte[] cachedBytes
-
-
构造器详细资料
-
AbstractMultipartFile
public AbstractMultipartFile()
-
-
方法详细资料
-
transferTo
从接口复制的说明:MultipartFileTransfer the received file to the given destination file.This may either move the file in the filesystem, copy the file in the filesystem, or save memory-held contents to the destination file. If the destination file already exists, it will be deleted first.
If the target file has been moved in the filesystem, this operation cannot be invoked again afterwards. Therefore, call this method just once in order to work with any storage mechanism.
NOTE: Depending on the underlying provider, temporary storage may be container-dependent, including the base directory for relative destinations specified here (e.g. with Servlet multipart handling). For absolute destinations, the target file may get renamed/moved from its temporary location or newly copied, even if a temporary copy already exists.
- 指定者:
transferTo在接口中MultipartFile- 参数:
dest- the destination file (typically absolute)- 抛出:
IOException- in case of reading or writing errors- 另请参阅:
-
saveInternal
- 抛出:
IOException
-
getBytes
从接口复制的说明:MultipartFileReturns the contents of the file item as an array of bytes.- 指定者:
getBytes在接口中MultipartFile- 抛出:
IOException- If any IO exception occurred
-
doGetBytes
- 抛出:
IOException
-
isFormField
public boolean isFormField()从接口复制的说明:MultipartDetermines whether or not aMultipartinstance represents a simple form field.- 指定者:
isFormField在接口中Multipart- 返回:
trueif the instance represents a simple form field;falseif it represents an uploaded file.
-
getValue
从接口复制的说明:MultipartReturn the form field value.
-