| Constructor and Description | 
|---|
NettyPartData(io.netty.handler.codec.http.multipart.FileUpload fileUpload,
             int start,
             int length)  | 
| Modifier and Type | Method and Description | 
|---|---|
io.netty.buffer.ByteBuf | 
getByteBuf()  | 
ByteBuffer | 
getByteBuffer()
The contents of the chunk are released immediately. 
 | 
byte[] | 
getBytes()
The contents of the chunk are released immediately. 
 | 
Optional<MediaType> | 
getContentType()
Gets the content type of this chunk. 
 | 
InputStream | 
getInputStream()
The contents of the chunk will be released when the stream is closed. 
 | 
public NettyPartData(io.netty.handler.codec.http.multipart.FileUpload fileUpload,
                     int start,
                     int length)
fileUpload - The file uploadstart - The index where to start reading byteslength - The number of bytes to readpublic InputStream getInputStream() throws IOException
getInputStream in interface PartDataIOException - If an error occurs in retrieving the contentPartData.getInputStream()public byte[] getBytes()
                throws IOException
getBytes in interface PartDataIOException - If an error occurs in retrieving the contentPartData.getBytes()public ByteBuffer getByteBuffer() throws IOException
getByteBuffer in interface PartDataIOException - If an error occurs in retrieving the contentPartData.getByteBuffer()public Optional<MediaType> getContentType()
PartDatagetContentType in interface PartDataPartData.getContentType()public io.netty.buffer.ByteBuf getByteBuf()
                                   throws IOException
ByteBuf for this chunkIOException - If an error occurs retrieving the buffer