org.jboss.netty.handler.codec.http
类 DefaultHttpChunk

java.lang.Object
  继承者 org.jboss.netty.handler.codec.http.DefaultHttpChunk
所有已实现的接口:
HttpChunk

public class DefaultHttpChunk
extends java.lang.Object
implements HttpChunk

The default HttpChunk implementation.


字段摘要
 
从接口 org.jboss.netty.handler.codec.http.HttpChunk 继承的字段
LAST_CHUNK
 
构造方法摘要
DefaultHttpChunk(ChannelBuffer content)
          Creates a new instance with the specified chunk content.
 
方法摘要
 ChannelBuffer 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(ChannelBuffer content)
          Sets the content of this chunk.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

DefaultHttpChunk

public DefaultHttpChunk(ChannelBuffer content)
Creates a new instance with the specified chunk content. If an empty buffer is specified, this chunk becomes the 'end of content' marker.

方法详细信息

getContent

public ChannelBuffer getContent()
从接口 HttpChunk 复制的描述
Returns the content of this chunk. If this is the 'end of content' marker, ChannelBuffers.EMPTY_BUFFER will be returned.

指定者:
接口 HttpChunk 中的 getContent

setContent

public void setContent(ChannelBuffer content)
从接口 HttpChunk 复制的描述
Sets the content of this chunk. If an empty buffer is specified, this chunk becomes the 'end of content' marker.

指定者:
接口 HttpChunk 中的 setContent

isLast

public boolean isLast()
从接口 HttpChunk 复制的描述
Returns true if and only if this chunk is the 'end of content' marker.

指定者:
接口 HttpChunk 中的 isLast