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