play.data
Class Upload

java.lang.Object
  extended by play.data.Upload

public class Upload
extends java.lang.Object


Constructor Summary
Upload(org.apache.commons.fileupload.FileItem fileItem)
           
 
Method Summary
 byte[] asBytes()
           
 java.io.File asFile()
           
 java.io.File asFile(java.io.File file)
           
 java.io.File asFile(java.lang.String name)
           
 java.io.InputStream asStream()
           
 java.lang.String getContentType()
           
 java.lang.String getFieldName()
           
 java.lang.String getFileName()
           
 java.lang.Long getSize()
           
 boolean isInMemory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Upload

public Upload(org.apache.commons.fileupload.FileItem fileItem)
Method Detail

asFile

public java.io.File asFile()

asFile

public java.io.File asFile(java.io.File file)

asFile

public java.io.File asFile(java.lang.String name)

asBytes

public byte[] asBytes()

asStream

public java.io.InputStream asStream()

getContentType

public java.lang.String getContentType()

getFileName

public java.lang.String getFileName()

getFieldName

public java.lang.String getFieldName()

getSize

public java.lang.Long getSize()

isInMemory

public boolean isInMemory()


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly