public final class PushBody extends Object implements Body
Body.BodyState
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 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 Closeable
close
in interface AutoCloseable
Copyright © 2019. All rights reserved.