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) |
isLast, isUnderlyingConnectionToBeClosed, markUnderlyingConnectionAsToBeClosed
public EagerNettyResponseBodyPart(io.netty.buffer.ByteBuf buf, boolean last)
public byte[] getBodyPartBytes()
getBodyPartBytes
in class HttpResponseBodyPart
public InputStream readBodyPartBytes()
readBodyPartBytes
in class HttpResponseBodyPart
public int length()
length
in class HttpResponseBodyPart
public int writeTo(OutputStream outputStream) throws IOException
writeTo
in class HttpResponseBodyPart
IOException
public ByteBuffer getBodyByteBuffer()
getBodyByteBuffer
in class HttpResponseBodyPart
Copyright © 2015. All Rights Reserved.