public class FilePostSender extends PostSender
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
SEPARATOR |
callback, conn, Default_Conn_Timeout, Default_Read_Timeout, es, followRedirects, interceptor, progressListener, request, sslSocketFactory| 构造器和说明 |
|---|
FilePostSender(Request request) |
| 限定符和类型 | 方法和说明 |
|---|---|
static FilePostSender |
create(Request request) |
static void |
export(Map<String,Object> params,
OutputStream out,
String boundary,
String enc) |
int |
getEstimationSize() |
Response |
send() |
protected static void |
writeFile(File f,
String key,
DataOutputStream outs,
String boundary,
String enc) |
call, create, create, create, createResponse, getExecutorService, getOutputStream, getResponseHeader, getTimeout, openConnection, send, setCallback, setFollowRedirects, setInterceptor, setProgressListener, setSSLSocketFactory, setTimeout, setup, setupDoInputOutputFlag, setupRequestHeader, shutdownpublic FilePostSender(Request request)
public static FilePostSender create(Request request)
public Response send() throws HttpException
send 在类中 PostSenderHttpExceptionpublic static void export(Map<String,Object> params, OutputStream out, String boundary, String enc) throws IOException
IOExceptionprotected static void writeFile(File f, String key, DataOutputStream outs, String boundary, String enc) throws IOException
IOExceptionpublic int getEstimationSize()
throws IOException
getEstimationSize 在类中 PostSenderIOExceptionCopyright © 2017. All rights reserved.