Class FileItem


  • public class FileItem
    extends Object
    FileItem is a file uploaded by the end user's browser.
    • Field Detail

      • STREAM_BUFFER_SIZE

        protected static final int STREAM_BUFFER_SIZE
        The chunk size used when streaming (100k).
        See Also:
        Constant Field Values
      • m_name

        protected String m_name
        file name.
      • m_type

        protected String m_type
        file type.
      • m_inputStream

        protected InputStream m_inputStream
        Stream from which body can be read
    • Constructor Detail

      • FileItem

        public FileItem​(String fileName,
                        String fileType)
        Construct
        Parameters:
        fileName - The file name.
        fileType - The file type.
    • Method Detail

      • getFileName

        public String getFileName()
      • getContentType

        public String getContentType()
      • getInputStream

        public InputStream getInputStream()
        Returns:
        the input stream from which the body can be read.