public class EagerNettyResponseBodyPart extends NettyResponseBodyPart
| Constructor and Description |
|---|
EagerNettyResponseBodyPart(io.netty.buffer.ByteBuf buf,
boolean last) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
getBodyByteBuffer() |
byte[] |
getBodyPartBytes()
Return the response body's part bytes received.
|
int |
length() |
InputStream |
readBodyPartBytes() |
int |
writeTo(OutputStream outputStream)
Write the available bytes to the
OutputStream |
isLast, isUnderlyingConnectionToBeClosed, markUnderlyingConnectionAsToBeClosedpublic EagerNettyResponseBodyPart(io.netty.buffer.ByteBuf buf,
boolean last)
public byte[] getBodyPartBytes()
getBodyPartBytes in class HttpResponseBodyPartpublic InputStream readBodyPartBytes()
readBodyPartBytes in class HttpResponseBodyPartpublic int length()
length in class HttpResponseBodyPartpublic int writeTo(OutputStream outputStream) throws IOException
HttpResponseBodyPartOutputStreamwriteTo in class HttpResponseBodyPartoutputStream - the target osIOException - exception while writing in the ospublic ByteBuffer getBodyByteBuffer()
getBodyByteBuffer in class HttpResponseBodyPartByteBuffer that wraps the actual bytes read from the response's chunk.
The ByteBuffer's capacity is equal to the number of bytes available.Copyright © 2015. All Rights Reserved.