public class MemoryAttribute extends AbstractMemoryHttpData implements Attribute
InterfaceHttpData.HttpDataTypedefinedSize, size| Constructor and Description | 
|---|
MemoryAttribute(java.lang.String name)  |  
          
MemoryAttribute(java.lang.String name, java.nio.charset.Charset charset)  |  
          
MemoryAttribute(java.lang.String name, long definedSize)  |  
          
MemoryAttribute(java.lang.String name, long definedSize, java.nio.charset.Charset charset)  |  
          
MemoryAttribute(java.lang.String name, java.lang.String value)  |  
          
MemoryAttribute(java.lang.String name, java.lang.String value, java.nio.charset.Charset charset)  |  
          
| Modifier and Type | Method and Description | 
|---|---|
void |  
           addContent(ByteBuf buffer, boolean last) 
            
              从ChannelBuffer添加内容 
               |  
          
int |  
           compareTo(Attribute o)  |  
          
int |  
           compareTo(InterfaceHttpData other)  |  
          
Attribute |  
           copy() 
             
             创建此  ByteBufHolder的深层副本。 
             |  
          
Attribute |  
           duplicate() 
             
             重复此  ByteBufHolder 。 
             |  
          
boolean |  
           equals(java.lang.Object o)  |  
          
InterfaceHttpData.HttpDataType |  
           getHttpDataType()  |  
          
java.lang.String |  
           getValue() 
            
              返回此HttpData的值。 
               |  
          
int |  
           hashCode()  |  
          
Attribute |  
           replace(ByteBuf content) 
             
             返回一个新  ByteBufHolder包含指定content 。 
             |  
          
Attribute |  
           retain() 
            
              将引用计数增加 
               1 。 
             |  
          
Attribute |  
           retain(int increment) 
            
              将参考计数增加 
               increment 。 
             |  
          
Attribute |  
           retainedDuplicate() 
             
             重复此  ByteBufHolder 。 
             |  
          
void |  
           setValue(java.lang.String value) 
            
              设置此HttpData的值。 
               |  
          
java.lang.String |  
           toString()  |  
          
Attribute |  
           touch() 
            
              记录此对象的当前访问位置以进行调试。 
               |  
          
Attribute |  
           touch(java.lang.Object hint) 
            
              记录此对象的当前访问位置,并附加一些用于调试的任意信息。 
               |  
          
delete, get, getByteBuf, getChunk, getFile, getString, getString, isInMemory, renameTo, setContent, setContent, setContentcheckSize, content, deallocate, definedLength, getCharset, getMaxSize, getName, isCompleted, length, setCharset, setCompleted, setMaxSizerefCnt, release, release, setRefCntclone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckSize, definedLength, delete, get, getByteBuf, getCharset, getChunk, getFile, getMaxSize, getString, getString, isCompleted, isInMemory, length, renameTo, setCharset, setContent, setContent, setContent, setMaxSizegetNamecontentrefCnt, release, releasepublic MemoryAttribute(java.lang.String name)
public MemoryAttribute(java.lang.String name,
                       long definedSize) public MemoryAttribute(java.lang.String name,
                       java.nio.charset.Charset charset) public MemoryAttribute(java.lang.String name,
                       long definedSize,
                       java.nio.charset.Charset charset) public MemoryAttribute(java.lang.String name,
                       java.lang.String value)
                throws java.io.IOException 
          java.io.IOException 
           public MemoryAttribute(java.lang.String name,
                       java.lang.String value,
                       java.nio.charset.Charset charset)
                throws java.io.IOException 
          java.io.IOException 
           public InterfaceHttpData.HttpDataType getHttpDataType()
getHttpDataType在界面 
            InterfaceHttpData 
           public java.lang.String getValue()
Attribute 
          public void setValue(java.lang.String value)
              throws java.io.IOException 
          Attribute 
          public void addContent(ByteBuf buffer, boolean last) throws java.io.IOException
HttpData 
          addContent在界面 
            HttpData 
           addContent 
            AbstractMemoryHttpData 
           buffer - 除非last设置为False,否则不能为null 
           last - 真正的缓冲区是最后一个 
           java.io.IOException 
           public int hashCode()
hashCode在课程 
            java.lang.Object 
           public boolean equals(java.lang.Object o)
equals 
            java.lang.Object 
           public int compareTo(InterfaceHttpData other)
compareTo在界面 
            java.lang.Comparable<InterfaceHttpData> 
           public int compareTo(Attribute o)
public java.lang.String toString()
toString在课程 
            java.lang.Object 
           public Attribute copy()
ByteBufHolder 
          ByteBufHolder的深层副本。 
          public Attribute duplicate()
ByteBufHolder 
          ByteBufHolder 。 
           请注意,这不会自动调用ByteBufHolder.retain() 。 
          public Attribute retainedDuplicate()
ByteBufHolder 
          ByteBufHolder 。 
           此方法返回一个保留的重复,不像ByteBufHolder.duplicate() 。 
          retainedDuplicate ,界面 
            ByteBufHolder 
           retainedDuplicate在界面 
            Attribute 
           retainedDuplicate ,界面 
            HttpData 
           ByteBuf.retainedDuplicate() 
           public Attribute replace(ByteBuf content)
ByteBufHolder 
          ByteBufHolder包含指定content 。 
          public Attribute retain()
ReferenceCounted 
          1 。 
          retain接口 
            ByteBufHolder 
           retain接口 
            Attribute 
           retain接口 
            HttpData 
           retain在界面 
            InterfaceHttpData 
           retain在界面 
            ReferenceCounted 
           retain在课堂上 
            AbstractHttpData 
           public Attribute retain(int increment)
ReferenceCounted 
          increment 。 
          retain在界面 
            ByteBufHolder 
           retain在界面 
            Attribute 
           retain ,界面 
            HttpData 
           retain在界面 
            InterfaceHttpData 
           retain在界面 
            ReferenceCounted 
           retain在课程 
            AbstractHttpData 
           public Attribute touch()
ReferenceCounted 
          touch在界面 
            ByteBufHolder 
           touch在界面 
            Attribute 
           touch在界面 
            HttpData 
           touch在界面 
            InterfaceHttpData 
           touch ,界面 
            ReferenceCounted 
           touch在课堂上 
            AbstractMemoryHttpData 
           public Attribute touch(java.lang.Object hint)
ReferenceCounted 
          ResourceLeakDetector提供给您。 
          touch在界面 
            ByteBufHolder 
           touch接口 
            Attribute 
           touch在界面 
            HttpData 
           touch在界面 
            InterfaceHttpData 
           touch在界面 
            ReferenceCounted 
           touch在课程 
            AbstractMemoryHttpData 
           Copyright © 2008–2018 The Netty Project. All rights reserved.