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, shutdown
public FilePostSender(Request request)
public static FilePostSender create(Request request)
public Response send() throws HttpException
send
在类中 PostSender
HttpException
public static void export(Map<String,Object> params, OutputStream out, String boundary, String enc) throws IOException
IOException
protected static void writeFile(File f, String key, DataOutputStream outs, String boundary, String enc) throws IOException
IOException
public int getEstimationSize() throws IOException
getEstimationSize
在类中 PostSender
IOException
Copyright © 2017. All rights reserved.