com.dropbox.client2
Class ProgressListener.ProgressHttpEntity

java.lang.Object
  extended by org.apache.http.entity.HttpEntityWrapper
      extended by com.dropbox.client2.ProgressListener.ProgressHttpEntity
All Implemented Interfaces:
org.apache.http.HttpEntity
Enclosing class:
ProgressListener

public static class ProgressListener.ProgressHttpEntity
extends org.apache.http.entity.HttpEntityWrapper

A wrapper for an HttpEntity that can count the number of bytes transferred. This is used internally to give updates for uploads.


Field Summary
 
Fields inherited from class org.apache.http.entity.HttpEntityWrapper
wrappedEntity
 
Constructor Summary
ProgressListener.ProgressHttpEntity(org.apache.http.HttpEntity wrapped, ProgressListener listener)
           
 
Method Summary
 void writeTo(java.io.OutputStream out)
           
 
Methods inherited from class org.apache.http.entity.HttpEntityWrapper
consumeContent, getContent, getContentEncoding, getContentLength, getContentType, isChunked, isRepeatable, isStreaming
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressListener.ProgressHttpEntity

public ProgressListener.ProgressHttpEntity(org.apache.http.HttpEntity wrapped,
                                           ProgressListener listener)
Method Detail

writeTo

public void writeTo(java.io.OutputStream out)
             throws java.io.IOException
Specified by:
writeTo in interface org.apache.http.HttpEntity
Overrides:
writeTo in class org.apache.http.entity.HttpEntityWrapper
Throws:
java.io.IOException