AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
Public 成员函数 | Public 属性 | Private 成员函数 | 所有成员列表
com.ab.http.AbMultipartEntity.FilePart类 参考

Public 成员函数

 FilePart (String key, File file, String type)
 
long getTotalLength ()
 
void writeTo (OutputStream out) throws IOException
 

Public 属性

File file
 
byte[] header
 

Private 成员函数

byte[] createHeader (String key, String filename, String type)
 

详细描述

The Class FilePart.

构造及析构函数说明

com.ab.http.AbMultipartEntity.FilePart.FilePart ( String  key,
File  file,
String  type 
)
inline

Instantiates a new file part.

参数
keythe key
filethe file
typethe type

成员函数说明

byte [] com.ab.http.AbMultipartEntity.FilePart.createHeader ( String  key,
String  filename,
String  type 
)
inlineprivate

创建请求头.

参数
keythe key
filenamethe filename
typethe type
返回
the byte[]
long com.ab.http.AbMultipartEntity.FilePart.getTotalLength ( )
inline

获取长度.

返回
the total length
void com.ab.http.AbMultipartEntity.FilePart.writeTo ( OutputStream  out) throws IOException
inline

写入OutputStream.

参数
outthe out
异常
IOExceptionSignals that an I/O exception has occurred.

类成员变量说明

File com.ab.http.AbMultipartEntity.FilePart.file

The file.

byte [] com.ab.http.AbMultipartEntity.FilePart.header

The header.


该类的文档由以下文件生成: