类 CommonsMultipartFile

java.lang.Object
cn.sinozg.applet.common.suport.CommonsMultipartFile
所有已实现的接口:
Serializable, org.springframework.core.io.InputStreamSource, org.springframework.web.multipart.MultipartFile

public class CommonsMultipartFile extends Object implements org.springframework.web.multipart.MultipartFile, Serializable
COPY spring CommonsMultipartFile
从以下版本开始:
2024-01-07 12:38
作者:
xieyubin
另请参阅:
  • 字段详细资料

    • logger

      protected static final org.apache.commons.logging.Log logger
    • fileItem

      private final org.apache.commons.fileupload.FileItem fileItem
    • size

      private final long size
    • preserveFilename

      private boolean preserveFilename
  • 构造器详细资料

    • CommonsMultipartFile

      public CommonsMultipartFile(org.apache.commons.fileupload.FileItem fileItem)
      Create an instance wrapping the given FileItem.
      参数:
      fileItem - the FileItem to wrap
  • 方法详细资料

    • getFileItem

      public final org.apache.commons.fileupload.FileItem getFileItem()
      Return the underlying org.apache.commons.fileupload.FileItem instance. There is hardly any need to access this.
    • setPreserveFilename

      public void setPreserveFilename(boolean preserveFilename)
      Set whether to preserve the filename as sent by the client, not stripping off path information in

      Default is "false", stripping off path information that may prefix the actual filename e.g. from Opera. Switch this to "true" for preserving the client-specified filename as-is, including potential path separators.

      从以下版本开始:
      4.3.5
      另请参阅:
    • getName

      public String getName()
      指定者:
      getName 在接口中 org.springframework.web.multipart.MultipartFile
    • getOriginalFilename

      public String getOriginalFilename()
      指定者:
      getOriginalFilename 在接口中 org.springframework.web.multipart.MultipartFile
    • getContentType

      public String getContentType()
      指定者:
      getContentType 在接口中 org.springframework.web.multipart.MultipartFile
    • isEmpty

      public boolean isEmpty()
      指定者:
      isEmpty 在接口中 org.springframework.web.multipart.MultipartFile
    • getSize

      public long getSize()
      指定者:
      getSize 在接口中 org.springframework.web.multipart.MultipartFile
    • getBytes

      public byte[] getBytes()
      指定者:
      getBytes 在接口中 org.springframework.web.multipart.MultipartFile
    • getInputStream

      public InputStream getInputStream() throws IOException
      指定者:
      getInputStream 在接口中 org.springframework.core.io.InputStreamSource
      指定者:
      getInputStream 在接口中 org.springframework.web.multipart.MultipartFile
      抛出:
      IOException
    • transferTo

      public void transferTo(File dest) throws IOException, IllegalStateException
      指定者:
      transferTo 在接口中 org.springframework.web.multipart.MultipartFile
      抛出:
      IOException
      IllegalStateException
    • transferTo

      public void transferTo(Path dest) throws IOException, IllegalStateException
      指定者:
      transferTo 在接口中 org.springframework.web.multipart.MultipartFile
      抛出:
      IOException
      IllegalStateException
    • isAvailable

      protected boolean isAvailable()
      Determine whether the multipart content is still available. If a temporary file has been moved, the content is no longer available.
    • getStorageDescription

      public String getStorageDescription()
      Return a description for the storage location of the multipart content. Tries to be as specific as possible: mentions the file location in case of a temporary file.
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object