Package play.data

Class FileUpload

  • All Implemented Interfaces:
    Upload

    public class FileUpload
    extends java.lang.Object
    implements Upload
    • Constructor Summary

      Constructors 
      Constructor Description
      FileUpload​(org.apache.commons.fileupload.FileItem fileItem)  
    • Constructor Detail

      • FileUpload

        public FileUpload​(org.apache.commons.fileupload.FileItem fileItem)
    • Method Detail

      • 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 long getSize()
        Specified by:
        getSize in interface Upload