Package io.micronaut.http.multipart
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 Summary
Modifier and TypeMethodDescriptionGets the content of this chunk as aByteBuffer
.byte[]
getBytes()
Gets the content of this chunk as abyte[]
.Gets the content type of this chunk.Gets the content of this chunk as anInputStream
.
-
Method Details
-
getInputStream
Gets the content of this chunk as anInputStream
.- Returns:
- The content of this chunk as an
InputStream
- Throws:
IOException
- If an error occurs in retrieving the content
-
getBytes
Gets the content of this chunk as abyte[]
.- Returns:
- The content of this chunk as a
byte[]
- Throws:
IOException
- If an error occurs in retrieving the content
-
getByteBuffer
Gets the content of this chunk as aByteBuffer
.- Returns:
- The content of this chunk as a
ByteBuffer
- Throws:
IOException
- If an error occurs in retrieving the content
-
getContentType
Gets the content type of this chunk.- Returns:
- The content type of this chunk.
-