Package com.dropbox.core.util
Class ProgressOutputStream
- java.lang.Object
- 
- java.io.OutputStream
- 
- com.dropbox.core.util.ProgressOutputStream
 
 
- 
- All Implemented Interfaces:
- java.io.Closeable,- java.io.Flushable,- java.lang.AutoCloseable
 
 public class ProgressOutputStream extends java.io.OutputStream
- 
- 
Constructor SummaryConstructors Constructor Description ProgressOutputStream(java.io.OutputStream underlying)ProgressOutputStream(java.io.OutputStream underlying, IOUtil.ProgressListener listener)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidsetListener(IOUtil.ProgressListener listener)voidwrite(byte[] data)voidwrite(byte[] data, int off, int len)voidwrite(int c)
 
- 
- 
- 
Constructor Detail- 
ProgressOutputStreampublic ProgressOutputStream(java.io.OutputStream underlying) 
 - 
ProgressOutputStreampublic ProgressOutputStream(java.io.OutputStream underlying, IOUtil.ProgressListener listener)
 
- 
 - 
Method Detail- 
setListenerpublic void setListener(IOUtil.ProgressListener listener) 
 - 
writepublic void write(byte[] data, int off, int len) throws java.io.IOException- Overrides:
- writein class- java.io.OutputStream
- Throws:
- java.io.IOException
 
 - 
writepublic void write(byte[] data) throws java.io.IOException- Overrides:
- writein class- java.io.OutputStream
- Throws:
- java.io.IOException
 
 - 
writepublic void write(int c) throws java.io.IOException- Specified by:
- writein class- java.io.OutputStream
- Throws:
- java.io.IOException
 
 - 
flushpublic void flush() throws java.io.IOException- Specified by:
- flushin interface- java.io.Flushable
- Overrides:
- flushin class- java.io.OutputStream
- Throws:
- java.io.IOException
 
 - 
closepublic void close() throws java.io.IOException- Specified by:
- closein interface- java.lang.AutoCloseable
- Specified by:
- closein interface- java.io.Closeable
- Overrides:
- closein class- java.io.OutputStream
- Throws:
- java.io.IOException
 
 
- 
 
-