Package play.data
Class MemoryUpload
- java.lang.Object
-
- play.data.MemoryUpload
-
-
Constructor Summary
Constructors Constructor Description MemoryUpload(FileItem fileItem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
asBytes()
java.io.File
asFile()
java.io.InputStream
asStream()
java.lang.String
getContentType()
java.lang.String
getFieldName()
java.lang.String
getFileName()
java.lang.Long
getSize()
boolean
isInMemory()
-
-
-
Constructor Detail
-
MemoryUpload
public MemoryUpload(FileItem fileItem)
-
-
Method Detail
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interfaceUpload
-
getFileName
public java.lang.String getFileName()
- Specified by:
getFileName
in interfaceUpload
-
getFieldName
public java.lang.String getFieldName()
- Specified by:
getFieldName
in interfaceUpload
-
isInMemory
public boolean isInMemory()
- Specified by:
isInMemory
in interfaceUpload
-
-