Package com.dropbox.core.http
Class HttpRequestor.Uploader
- java.lang.Object
-
- com.dropbox.core.http.HttpRequestor.Uploader
-
- Enclosing class:
- HttpRequestor
public abstract static class HttpRequestor.Uploader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected IOUtil.ProgressListener
progressListener
-
Constructor Summary
Constructors Constructor Description Uploader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
progressListener
protected IOUtil.ProgressListener progressListener
-
-
Method Detail
-
getBody
public abstract java.io.OutputStream getBody()
-
close
public abstract void close()
-
abort
public abstract void abort()
-
finish
public abstract HttpRequestor.Response finish() throws java.io.IOException
- Throws:
java.io.IOException
-
upload
public void upload(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
upload
public void upload(java.io.InputStream in, long limit) throws java.io.IOException
- Throws:
java.io.IOException
-
upload
public void upload(java.io.InputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
upload
public void upload(byte[] body) throws java.io.IOException
- Throws:
java.io.IOException
-
setProgressListener
public void setProgressListener(IOUtil.ProgressListener progressListener)
-
-