public class DefaultHttpChunk extends DefaultHttpObject implements HttpChunk
HttpChunk
implementation.LAST_CHUNK
Constructor and Description |
---|
DefaultHttpChunk(io.netty.buffer.ByteBuf content)
Creates a new instance with the specified chunk content.
|
Modifier and Type | Method and Description |
---|---|
io.netty.buffer.ByteBuf |
getContent()
Returns the content of this chunk.
|
boolean |
isLast()
Returns
true if and only if this chunk is the 'end of content'
marker. |
void |
setContent(io.netty.buffer.ByteBuf content)
Sets the content of this chunk.
|
String |
toString() |
getDecoderResult, setDecoderResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDecoderResult, setDecoderResult
public DefaultHttpChunk(io.netty.buffer.ByteBuf content)
public io.netty.buffer.ByteBuf getContent()
HttpChunk
Unpooled.EMPTY_BUFFER
will be returned.getContent
in interface HttpChunk
public void setContent(io.netty.buffer.ByteBuf content)
HttpChunk
setContent
in interface HttpChunk
public boolean isLast()
HttpChunk
true
if and only if this chunk is the 'end of content'
marker.Copyright © 2008-2012 The Netty Project. All Rights Reserved.