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 Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.Log
Deprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CommonsMultipartFile
(org.apache.commons.fileupload.FileItem fileItem) Deprecated.Create an instance wrapping the given FileItem. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getBytes()
Deprecated.Deprecated.org.apache.commons.fileupload.FileItem
Deprecated.Return the underlyingorg.apache.commons.fileupload.FileItem
instance.Deprecated.getName()
Deprecated.Deprecated.long
getSize()
Deprecated.protected String
Deprecated.Return a description for the storage location of the multipart content.protected boolean
Deprecated.Determine whether the multipart content is still available.boolean
isEmpty()
Deprecated.void
transferTo
(File dest) Deprecated.
-
Field Details
-
logger
protected static final org.apache.commons.logging.Log loggerDeprecated.
-
-
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 interfaceorg.springframework.web.multipart.MultipartFile
-
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
Deprecated.- Specified by:
getInputStream
in interfaceorg.springframework.web.multipart.MultipartFile
- Throws:
IOException
-
getName
Deprecated.- Specified by:
getName
in interfaceorg.springframework.web.multipart.MultipartFile
-
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
Deprecated.- Specified by:
transferTo
in interfaceorg.springframework.web.multipart.MultipartFile
- Throws:
IOException
IllegalStateException
-
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.
-