Interface Payload.Part

Enclosing interface:
Payload

public static interface Payload.Part
Public API for the payload Part.
  • Method Details

    • getName

      String getName()
      Returns the name assigned to the part when it was created.
      Returns:
      name
    • getContentType

      String getContentType()
      Returns the content type of the part.
      Returns:
      content type
    • getProperties

      Properties getProperties()
      Returns the Properties associated with the Part.
      Returns:
      Properties for the Part
    • getInputStream

      InputStream getInputStream()
      Returns:
      an InputStream suitable for reading the content of the Part. Caller is responsible for closing.
    • copy

      void copy(OutputStream os) throws IOException
      Copies the contents of the Part to the specified OutputStream. Doesn't close the stream.
      Parameters:
      os - target OutputStream to receive the content of the Part
      Throws:
      IOException
    • isRecursive

      boolean isRecursive()
      Returns:
      true indicates if the Part represents a recursive action
    • setExtracted

      void setExtracted(File extractedFile)
      Extractor of content can note where the content was extracted. It can help next user of the same Part to read content.
      Parameters:
      extractedFile -
    • getExtracted

      File getExtracted()
      File where content was extracted from the payload.