public interface PartData
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
getByteBuffer()
Gets the content of this chunk as a
ByteBuffer. |
byte[] |
getBytes()
Gets the content of this chunk as a
byte[]. |
Optional<MediaType> |
getContentType()
Gets the content type of this chunk.
|
InputStream |
getInputStream()
Gets the content of this chunk as an
InputStream. |
InputStream getInputStream() throws IOException
InputStream.InputStreamIOException - If an error occurs in retrieving the contentbyte[] getBytes()
throws IOException
byte[].byte[]IOException - If an error occurs in retrieving the contentByteBuffer getByteBuffer() throws IOException
ByteBuffer.ByteBufferIOException - If an error occurs in retrieving the content