play.data
Class FileUpload
java.lang.Object
play.data.FileUpload
- All Implemented Interfaces:
- Upload
public class FileUpload
- extends java.lang.Object
- implements Upload
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUpload
public FileUpload()
FileUpload
public FileUpload(FileItem fileItem)
asFile
public java.io.File asFile()
- Specified by:
asFile
in interface Upload
asFile
public java.io.File asFile(java.io.File file)
asFile
public java.io.File asFile(java.lang.String name)
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