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()
Body
getContentLength
in interface Body
public Body.BodyState transferTo(io.netty.buffer.ByteBuf target)
Body
transferTo
in interface Body
target
- The buffer to store the chunk in, must not be null
.public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
Copyright © 2018. All Rights Reserved.