Class FileItemInputImpl

java.lang.Object
org.apache.commons.fileupload2.core.FileItemInputImpl
All Implemented Interfaces:
FileItemHeadersProvider<FileItemInput>, FileItemInput

class FileItemInputImpl extends Object implements FileItemInput
Default implementation of FileItemInput.
  • Field Details

    • fileItemInputIteratorImpl

      private final FileItemInputIteratorImpl fileItemInputIteratorImpl
      The File Item iterator implementation.
      See Also:
    • contentType

      private final String contentType
      The file items content type.
    • fieldName

      private final String fieldName
      The file items field name.
    • fileName

      private final String fileName
      The file items file name.
    • formField

      private final boolean formField
      Whether the file item is a form field.
    • inputStream

      private final InputStream inputStream
      The file items input stream.
    • inputStreamClosed

      private boolean inputStreamClosed
      The file items input stream closed flag.
    • headers

      private FileItemHeaders headers
      The headers, if any.
  • Constructor Details

    • FileItemInputImpl

      FileItemInputImpl(FileItemInputIteratorImpl fileItemIterator, String fileName, String fieldName, String contentType, boolean formField, long contentLength) throws FileUploadException, IOException
      Creates a new instance.
      Parameters:
      fileItemIterator - The iterator, which returned this file item.
      fileName - The items file name, or null.
      fieldName - The items field name.
      contentType - The items content type, or null.
      formField - Whether the item is a form field.
      contentLength - The items content length, if known, or -1
      Throws:
      IOException - Creating the file item failed.
      FileUploadException - Parsing the incoming data stream failed.
  • Method Details