Interface PartData

All Known Subinterfaces:
CompletedFileUpload, CompletedPart
All Known Implementing Classes:
NettyCompletedAttribute, NettyCompletedFileUpload, NettyPartData

public interface PartData
Represents a chunk of data belonging to a part of a multipart request.
Since:
1.0
Author:
James Kleeh
  • Method Details

    • getInputStream

      InputStream getInputStream() throws IOException
      Gets the content of this chunk as an InputStream.
      Returns:
      The content of this chunk as an InputStream
      Throws:
      IOException - If an error occurs in retrieving the content
    • getBytes

      byte[] getBytes() throws IOException
      Gets the content of this chunk as a byte[].
      Returns:
      The content of this chunk as a byte[]
      Throws:
      IOException - If an error occurs in retrieving the content
    • getByteBuffer

      ByteBuffer getByteBuffer() throws IOException
      Gets the content of this chunk as a ByteBuffer.
      Returns:
      The content of this chunk as a ByteBuffer
      Throws:
      IOException - If an error occurs in retrieving the content
    • getContentType

      Optional<MediaType> getContentType()
      Gets the content type of this chunk.
      Returns:
      The content type of this chunk.