public abstract class AbstractHttpData extends AbstractReferenceCounted implements HttpData
InterfaceHttpData.HttpDataType
限定符和类型 | 字段和说明 |
---|---|
protected java.nio.charset.Charset |
charset |
protected boolean |
completed |
protected long |
definedSize |
protected java.lang.String |
name |
protected long |
size |
限定符 | 构造器和说明 |
---|---|
protected |
AbstractHttpData(java.lang.String name,
java.nio.charset.Charset charset,
long size) |
限定符和类型 | 方法和说明 |
---|---|
ByteBuf |
content()
Return the data which is held by this
ByteBufHolder . |
protected void |
deallocate()
Called once
AbstractReferenceCounted.refCnt() is equals 0. |
java.nio.charset.Charset |
getCharset()
Returns the Charset passed by the browser or null if not defined.
|
java.lang.String |
getName()
Returns the name of this InterfaceHttpData.
|
boolean |
isCompleted() |
long |
length()
Returns the size in byte of the InterfaceHttpData
|
HttpData |
retain()
Increases the reference count by
1 . |
HttpData |
retain(int increment)
Increases the reference count by the specified
increment . |
void |
setCharset(java.nio.charset.Charset charset)
Set the Charset passed by the browser if defined
|
refCnt, release, release, setRefCnt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addContent, copy, delete, duplicate, get, getByteBuf, getChunk, getFile, getString, getString, isInMemory, renameTo, setContent, setContent, setContent
getHttpDataType
refCnt, release, release
protected final java.lang.String name
protected long definedSize
protected long size
protected java.nio.charset.Charset charset
protected boolean completed
protected AbstractHttpData(java.lang.String name, java.nio.charset.Charset charset, long size)
public java.lang.String getName()
InterfaceHttpData
getName
在接口中 InterfaceHttpData
public boolean isCompleted()
isCompleted
在接口中 HttpData
public java.nio.charset.Charset getCharset()
HttpData
getCharset
在接口中 HttpData
public void setCharset(java.nio.charset.Charset charset)
HttpData
setCharset
在接口中 HttpData
charset
- Charset to set - must be not nullpublic long length()
HttpData
public ByteBuf content()
ByteBufHolder
ByteBufHolder
.content
在接口中 ByteBufHolder
protected void deallocate()
AbstractReferenceCounted
AbstractReferenceCounted.refCnt()
is equals 0.deallocate
在类中 AbstractReferenceCounted
public HttpData retain()
ReferenceCounted
1
.retain
在接口中 ByteBufHolder
retain
在接口中 HttpData
retain
在接口中 ReferenceCounted
retain
在类中 AbstractReferenceCounted
public HttpData retain(int increment)
ReferenceCounted
increment
.retain
在接口中 ByteBufHolder
retain
在接口中 HttpData
retain
在接口中 ReferenceCounted
retain
在类中 AbstractReferenceCounted