Package hudson.model

Class FileParameterValue.FileItemImpl2

java.lang.Object
hudson.model.FileParameterValue.FileItemImpl2
All Implemented Interfaces:
org.apache.commons.fileupload2.core.FileItem, org.apache.commons.fileupload2.core.FileItemHeadersProvider
Enclosing class:
FileParameterValue

public static final class FileParameterValue.FileItemImpl2 extends Object implements org.apache.commons.fileupload2.core.FileItem
Default implementation from File.
  • Constructor Details

    • FileItemImpl2

      public FileItemImpl2(File file)
  • Method Details

    • getInputStream

      public InputStream getInputStream() throws IOException
      Specified by:
      getInputStream in interface org.apache.commons.fileupload2.core.FileItem
      Throws:
      IOException
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface org.apache.commons.fileupload2.core.FileItem
    • getName

      public String getName()
      Specified by:
      getName in interface org.apache.commons.fileupload2.core.FileItem
    • isInMemory

      public boolean isInMemory()
      Specified by:
      isInMemory in interface org.apache.commons.fileupload2.core.FileItem
    • getSize

      public long getSize()
      Specified by:
      getSize in interface org.apache.commons.fileupload2.core.FileItem
    • get

      public byte[] get()
      Specified by:
      get in interface org.apache.commons.fileupload2.core.FileItem
    • getString

      public String getString(Charset toCharset) throws IOException
      Specified by:
      getString in interface org.apache.commons.fileupload2.core.FileItem
      Throws:
      IOException
    • getString

      public String getString()
      Specified by:
      getString in interface org.apache.commons.fileupload2.core.FileItem
    • write

      public org.apache.commons.fileupload2.core.FileItem write(Path to) throws IOException
      Specified by:
      write in interface org.apache.commons.fileupload2.core.FileItem
      Throws:
      IOException
    • delete

      public org.apache.commons.fileupload2.core.FileItem delete() throws IOException
      Specified by:
      delete in interface org.apache.commons.fileupload2.core.FileItem
      Throws:
      IOException
    • getFieldName

      public String getFieldName()
      Specified by:
      getFieldName in interface org.apache.commons.fileupload2.core.FileItem
    • setFieldName

      public org.apache.commons.fileupload2.core.FileItem setFieldName(String name)
      Specified by:
      setFieldName in interface org.apache.commons.fileupload2.core.FileItem
    • isFormField

      public boolean isFormField()
      Specified by:
      isFormField in interface org.apache.commons.fileupload2.core.FileItem
    • setFormField

      public org.apache.commons.fileupload2.core.FileItem setFormField(boolean state)
      Specified by:
      setFormField in interface org.apache.commons.fileupload2.core.FileItem
    • getOutputStream

      @Deprecated public OutputStream getOutputStream() throws IOException
      Deprecated.
      Specified by:
      getOutputStream in interface org.apache.commons.fileupload2.core.FileItem
      Throws:
      IOException
    • getHeaders

      public org.apache.commons.fileupload2.core.FileItemHeaders getHeaders()
      Specified by:
      getHeaders in interface org.apache.commons.fileupload2.core.FileItemHeadersProvider
    • setHeaders

      public org.apache.commons.fileupload2.core.FileItemHeadersProvider setHeaders(org.apache.commons.fileupload2.core.FileItemHeaders headers)
      Specified by:
      setHeaders in interface org.apache.commons.fileupload2.core.FileItemHeadersProvider