Package ubic.gemma.web.util.upload
Class CommonsMultipartFile
- java.lang.Object
-
- ubic.gemma.web.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:
CommonsMultipartResolver
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Log
logger
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protected
CommonsMultipartFile(org.apache.commons.fileupload.FileItem fileItem)
Deprecated.Create an instance wrapping the given FileItem.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byte[]
getBytes()
Deprecated.String
getContentType()
Deprecated.org.apache.commons.fileupload.FileItem
getFileItem()
Deprecated.Return the underlyingorg.apache.commons.fileupload.FileItem
instance.InputStream
getInputStream()
Deprecated.String
getName()
Deprecated.String
getOriginalFilename()
Deprecated.long
getSize()
Deprecated.protected String
getStorageDescription()
Deprecated.Return a description for the storage location of the multipart content.protected boolean
isAvailable()
Deprecated.Determine whether the multipart content is still available.boolean
isEmpty()
Deprecated.void
transferTo(File dest)
Deprecated.
-
-
-
Method Detail
-
getBytes
public byte[] getBytes()
Deprecated.- Specified by:
getBytes
in interfaceorg.springframework.web.multipart.MultipartFile
-
getContentType
public String getContentType()
Deprecated.- Specified by:
getContentType
in interfaceorg.springframework.web.multipart.MultipartFile
-
getFileItem
public org.apache.commons.fileupload.FileItem getFileItem()
Deprecated.Return the underlyingorg.apache.commons.fileupload.FileItem
instance. There is hardly any need to access this.
-
getInputStream
public InputStream getInputStream() throws IOException
Deprecated.- Specified by:
getInputStream
in interfaceorg.springframework.web.multipart.MultipartFile
- Throws:
IOException
-
getName
public String getName()
Deprecated.- Specified by:
getName
in interfaceorg.springframework.web.multipart.MultipartFile
-
getOriginalFilename
public String getOriginalFilename()
Deprecated.- Specified by:
getOriginalFilename
in interfaceorg.springframework.web.multipart.MultipartFile
-
getSize
public long getSize()
Deprecated.- Specified by:
getSize
in interfaceorg.springframework.web.multipart.MultipartFile
-
isEmpty
public boolean isEmpty()
Deprecated.- Specified by:
isEmpty
in interfaceorg.springframework.web.multipart.MultipartFile
-
transferTo
public void transferTo(File dest) throws IOException, IllegalStateException
Deprecated.- Specified by:
transferTo
in interfaceorg.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.
-
-