Class CommonsMultipartFile

java.lang.Object
ubic.gemma.web.controller.util.upload.CommonsMultipartFile
All Implemented Interfaces:
Serializable, org.springframework.web.multipart.MultipartFile

@Deprecated public class CommonsMultipartFile extends Object implements org.springframework.web.multipart.MultipartFile, Serializable
Deprecated.
MultipartFile implementation for Jakarta Commons FileUpload, adaped directly from Spring implementation.

Implementation note: This is a port to Commons Fileutils 1.1, which has features needed by our MonitoredResolver.

Since:
29.09.2003
Author:
Paul Pavlidis, Trevor D. Cook, Juergen Hoeller
See Also:
  • Field Details

    • logger

      protected static final org.apache.commons.logging.Log logger
      Deprecated.
  • Constructor Details

    • CommonsMultipartFile

      protected CommonsMultipartFile(org.apache.commons.fileupload.FileItem fileItem)
      Deprecated.
      Create an instance wrapping the given FileItem.
      Parameters:
      fileItem - the FileItem to wrap
  • Method Details

    • getBytes

      public byte[] getBytes()
      Deprecated.
      Specified by:
      getBytes in interface org.springframework.web.multipart.MultipartFile
    • getContentType

      public String getContentType()
      Deprecated.
      Specified by:
      getContentType in interface org.springframework.web.multipart.MultipartFile
    • getFileItem

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

      public InputStream getInputStream() throws IOException
      Deprecated.
      Specified by:
      getInputStream in interface org.springframework.web.multipart.MultipartFile
      Throws:
      IOException
    • getName

      public String getName()
      Deprecated.
      Specified by:
      getName in interface org.springframework.web.multipart.MultipartFile
    • getOriginalFilename

      public String getOriginalFilename()
      Deprecated.
      Specified by:
      getOriginalFilename in interface org.springframework.web.multipart.MultipartFile
    • getSize

      public long getSize()
      Deprecated.
      Specified by:
      getSize in interface org.springframework.web.multipart.MultipartFile
    • isEmpty

      public boolean isEmpty()
      Deprecated.
      Specified by:
      isEmpty in interface org.springframework.web.multipart.MultipartFile
    • transferTo

      public void transferTo(File dest) throws IOException, IllegalStateException
      Deprecated.
      Specified by:
      transferTo in interface org.springframework.web.multipart.MultipartFile
      Throws:
      IOException
      IllegalStateException
    • getStorageDescription

      protected String getStorageDescription()
      Deprecated.
      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.
    • isAvailable

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