public class MemoryFileUpload extends AbstractMemoryHttpData implements FileUpload
InterfaceHttpData.HttpDataTypedefinedSize, size| Constructor and Description |
|---|
MemoryFileUpload(java.lang.String name, java.lang.String filename, java.lang.String contentType, java.lang.String contentTransferEncoding, java.nio.charset.Charset charset, long size) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(FileUpload o) |
int |
compareTo(InterfaceHttpData o) |
FileUpload |
copy()
创建此 ByteBufHolder的深层副本。
|
FileUpload |
duplicate()
重复此 ByteBufHolder 。
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getContentTransferEncoding()
返回Content-Transfer-Encoding
|
java.lang.String |
getContentType()
返回浏览器传递的内容类型,如果未定义,则返回null。
|
java.lang.String |
getFilename()
返回客户端文件系统中由浏览器(或其他客户端软件)提供的原始文件名。
|
InterfaceHttpData.HttpDataType |
getHttpDataType() |
int |
hashCode() |
FileUpload |
replace(ByteBuf content)
返回一个新 ByteBufHolder包含指定content 。
|
FileUpload |
retain()
将引用计数增加
1 。
|
FileUpload |
retain(int increment)
通过指定的
increment增加引用计数。
|
FileUpload |
retainedDuplicate()
重复此 ByteBufHolder 。
|
void |
setContentTransferEncoding(java.lang.String contentTransferEncoding)
将String中的Content-Transfer-Encoding类型设置为7bit,8bit或二进制
|
void |
setContentType(java.lang.String contentType)
如果已定义,请设置浏览器传递的内容类型
|
void |
setFilename(java.lang.String filename)
设置原始文件名
|
java.lang.String |
toString() |
FileUpload |
touch()
记录此对象的当前访问位置以进行调试。
|
FileUpload |
touch(java.lang.Object hint)
记录此对象的当前访问位置,并附加一些用于调试的任意信息。
|
addContent, 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, waitaddContent, checkSize, definedLength, delete, get, getByteBuf, getCharset, getChunk, getFile, getMaxSize, getString, getString, isCompleted, isInMemory, length, renameTo, setCharset, setContent, setContent, setContent, setMaxSizegetNamecontentrefCnt, release, releasepublic MemoryFileUpload(java.lang.String name,
java.lang.String filename,
java.lang.String contentType,
java.lang.String contentTransferEncoding,
java.nio.charset.Charset charset,
long size) public InterfaceHttpData.HttpDataType getHttpDataType()
getHttpDataType在界面
InterfaceHttpData
public java.lang.String getFilename()
FileUpload
getFilename在界面
FileUpload
public void setFilename(java.lang.String filename)
FileUpload
setFilename在界面
FileUpload
public int hashCode()
hashCode在课程
java.lang.Object
public boolean equals(java.lang.Object o)
equals
java.lang.Object
public int compareTo(InterfaceHttpData o)
compareTo在界面
java.lang.Comparable<InterfaceHttpData>
public int compareTo(FileUpload o)
public void setContentType(java.lang.String contentType)
FileUpload
setContentType ,界面
FileUpload
contentType - 要设置的内容类型 - 必须不为空
public java.lang.String getContentType()
FileUpload
getContentType ,界面
FileUpload
public java.lang.String getContentTransferEncoding()
FileUpload
getContentTransferEncoding ,界面
FileUpload
public void setContentTransferEncoding(java.lang.String contentTransferEncoding)
FileUpload
setContentTransferEncoding ,界面
FileUpload
public java.lang.String toString()
toString
java.lang.Object
public FileUpload copy()
ByteBufHolder
ByteBufHolder的深层副本。
copy在界面
ByteBufHolder
copy在界面
FileUpload
copy接口
HttpData
public FileUpload duplicate()
ByteBufHolder
ByteBufHolder 。
请注意,这不会自动调用ByteBufHolder.retain() 。
duplicate ,界面
ByteBufHolder
duplicate在界面
FileUpload
duplicate在界面
HttpData
public FileUpload retainedDuplicate()
ByteBufHolder
ByteBufHolder 。
与ByteBufHolder.duplicate()不同,此方法返回保留的副本。
retainedDuplicate接口
ByteBufHolder
retainedDuplicate在界面
FileUpload
retainedDuplicate在界面
HttpData
ByteBuf.retainedDuplicate()
public FileUpload replace(ByteBuf content)
ByteBufHolder
ByteBufHolder包含指定content 。
replace在界面
ByteBufHolder
replace在界面
FileUpload
replace接口
HttpData
public FileUpload retain()
ReferenceCounted
1 。
retain ,界面
ByteBufHolder
retain ,界面
FileUpload
retain ,界面
HttpData
retain在界面
InterfaceHttpData
retain在界面
ReferenceCounted
retain在课堂
AbstractHttpData
public FileUpload retain(int increment)
ReferenceCounted
increment 。
retain在界面
ByteBufHolder
retain在界面
FileUpload
retain在界面
HttpData
retain在界面
InterfaceHttpData
retain在界面
ReferenceCounted
retain在课堂上
AbstractHttpData
public FileUpload touch()
ReferenceCounted
touch在界面
ByteBufHolder
touch ,界面
FileUpload
touch接口
HttpData
touch接口
InterfaceHttpData
touch在界面
ReferenceCounted
touch
AbstractMemoryHttpData
public FileUpload touch(java.lang.Object hint)
ReferenceCounted
ResourceLeakDetector提供给您。
touch接口
ByteBufHolder
touch接口
FileUpload
touch接口
HttpData
touch在界面
InterfaceHttpData
touch在界面
ReferenceCounted
touch in class
AbstractMemoryHttpData
Copyright © 2008–2018 The Netty Project. All rights reserved.