@Internal public class NettyCompletedAttribute extends java.lang.Object implements CompletedPart
Attribute to implement
the CompletedPart contract.| Constructor and Description |
|---|
NettyCompletedAttribute(io.netty.handler.codec.http.multipart.Attribute attribute) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
getByteBuffer()
Gets the content of this chunk as a ByteBuffer.
|
byte[] |
getBytes()
Gets the content of this chunk as a byte[].
|
java.util.Optional<MediaType> |
getContentType()
Gets the content type of this chunk.
|
java.io.InputStream |
getInputStream()
Gets the content of this chunk as an InputStream.
|
java.lang.String |
getName() |
public NettyCompletedAttribute(io.netty.handler.codec.http.multipart.Attribute attribute)
attribute - The netty attributepublic java.lang.String getName()
getName in interface CompletedPartpublic java.io.InputStream getInputStream()
throws java.io.IOException
PartDatagetInputStream in interface PartDatajava.io.IOException - If an error occurs in retrieving the contentpublic byte[] getBytes()
throws java.io.IOException
PartDatapublic java.nio.ByteBuffer getByteBuffer()
throws java.io.IOException
PartDatagetByteBuffer in interface PartDatajava.io.IOException - If an error occurs in retrieving the contentpublic java.util.Optional<MediaType> getContentType()
PartDatagetContentType in interface PartData