Interface Part


public interface Part
The Part API.
Author:
Manfred Riem ([email protected])
  • Method Details

    • delete

      void delete() throws IOException
      Delete the part.
      Throws:
      IOException - when an I/O error occurs.
    • getContentType

      String getContentType()
      Returns the content type.
      Returns:
      the content type
    • getHeader

      String getHeader(String name)
      Get the header.
      Parameters:
      name - the name.
      Returns:
      the header, or null.
    • getHeaderNames

      Collection<String> getHeaderNames()
      Returns the header names.
      Returns:
      the header names
    • getHeaders

      Collection<String> getHeaders(String name)
      Returns the headers.
      Parameters:
      name - the name.
      Returns:
      the headers
    • getInputStream

      InputStream getInputStream() throws IOException
      Get the input stream.
      Returns:
      the input stream.
      Throws:
      IOException - when an I/O error occurs.
    • getName

      String getName()
      Returns the name.
      Returns:
      the name
    • getSize

      long getSize()
      Returns the size.
      Returns:
      the size
    • getSubmittedFileName

      String getSubmittedFileName()
      Returns the submitted filename.
      Returns:
      the submitted filename
    • write

      void write(String filename) throws IOException
      Write to the given filename.
      Parameters:
      filename - the filename.
      Throws:
      IOException - when an I/O error occurs.