public abstract static class HttpRequestor.Uploader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected IOUtil.ProgressListener |
progressListener |
Constructor and Description |
---|
Uploader() |
Modifier and Type | Method and Description |
---|---|
abstract void |
abort() |
abstract void |
close() |
abstract HttpRequestor.Response |
finish() |
abstract java.io.OutputStream |
getBody() |
void |
setProgressListener(IOUtil.ProgressListener progressListener) |
void |
upload(byte[] body) |
void |
upload(java.io.File file) |
void |
upload(java.io.InputStream in) |
void |
upload(java.io.InputStream in,
long limit) |
protected IOUtil.ProgressListener progressListener
public abstract java.io.OutputStream getBody()
public abstract void close()
public abstract void abort()
public abstract HttpRequestor.Response finish() throws java.io.IOException
java.io.IOException
public void upload(java.io.File file) throws java.io.IOException
java.io.IOException
public void upload(java.io.InputStream in, long limit) throws java.io.IOException
java.io.IOException
public void upload(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public void upload(byte[] body) throws java.io.IOException
java.io.IOException
public void setProgressListener(IOUtil.ProgressListener progressListener)