Class UploadedFileItem

  • All Implemented Interfaces:
    org.apache.commons.fileupload.FileItem, org.apache.commons.fileupload.FileItemHeadersSupport

    public class UploadedFileItem
    extends org.apache.commons.fileupload.disk.DiskFileItem
    Converts an UploadedFile into a usable FileItem instance.
    Author:
    silveryocha
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface org.apache.commons.fileupload.FileItem
        Overrides:
        getName in class org.apache.commons.fileupload.disk.DiskFileItem
      • getSize

        public long getSize()
        Specified by:
        getSize in interface org.apache.commons.fileupload.FileItem
        Overrides:
        getSize in class org.apache.commons.fileupload.disk.DiskFileItem
      • getContentType

        public String getContentType()
        Specified by:
        getContentType in interface org.apache.commons.fileupload.FileItem
        Overrides:
        getContentType in class org.apache.commons.fileupload.disk.DiskFileItem
      • get

        public byte[] get()
        Specified by:
        get in interface org.apache.commons.fileupload.FileItem
        Overrides:
        get in class org.apache.commons.fileupload.disk.DiskFileItem
      • getInputStream

        public InputStream getInputStream()
                                   throws IOException
        Specified by:
        getInputStream in interface org.apache.commons.fileupload.FileItem
        Overrides:
        getInputStream in class org.apache.commons.fileupload.disk.DiskFileItem
        Throws:
        IOException
      • getOutputStream

        public OutputStream getOutputStream()
                                     throws IOException
        Specified by:
        getOutputStream in interface org.apache.commons.fileupload.FileItem
        Overrides:
        getOutputStream in class org.apache.commons.fileupload.disk.DiskFileItem
        Throws:
        IOException