play.data
Class MemoryUpload
java.lang.Object
play.data.Upload
play.data.MemoryUpload
public class MemoryUpload
- extends Upload
|
Constructor Summary |
MemoryUpload(org.apache.commons.fileupload.FileItem fileItem)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryUpload
public MemoryUpload(org.apache.commons.fileupload.FileItem fileItem)
asFile
public File asFile()
- Specified by:
asFile in class Upload
asFile
public File asFile(File file)
- Specified by:
asFile in class Upload
asFile
public File asFile(String name)
- Specified by:
asFile in class Upload
asBytes
public byte[] asBytes()
- Specified by:
asBytes in class Upload
asStream
public InputStream asStream()
- Specified by:
asStream in class Upload
getContentType
public String getContentType()
- Specified by:
getContentType in class Upload
getFileName
public String getFileName()
- Specified by:
getFileName in class Upload
getFieldName
public String getFieldName()
- Specified by:
getFieldName in class Upload
getSize
public Long getSize()
- Specified by:
getSize in class Upload
isInMemory
public boolean isInMemory()
- Specified by:
isInMemory in class Upload
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly