Body.BodyState| Constructor and Description |
|---|
PushBody(java.util.Queue<BodyChunk> queue) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getContentLength()
Gets the length of the body.
|
Body.BodyState |
transferTo(io.netty.buffer.ByteBuf target)
Reads the next chunk of bytes from the body.
|
public PushBody(java.util.Queue<BodyChunk> queue)
public long getContentLength()
BodygetContentLength in interface Bodypublic Body.BodyState transferTo(io.netty.buffer.ByteBuf target)
BodytransferTo in interface Bodytarget - The buffer to store the chunk in, must not be null.public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableCopyright © 2018. All Rights Reserved.