Package com.dropbox.core
Class DbxStreamWriter<E extends java.lang.Throwable>
- java.lang.Object
-
- com.dropbox.core.DbxStreamWriter<E>
-
- Type Parameters:
E- The type of exception that yourwrite(com.dropbox.core.NoThrowOutputStream)implementation might throw If yourwriteimplementation won't throw any checked exceptions, you should useRuntimeExceptionfor this parameter.
- Direct Known Subclasses:
DbxStreamWriter.ByteArrayCopier,DbxStreamWriter.InputStreamCopier
public abstract class DbxStreamWriter<E extends java.lang.Throwable> extends java.lang.ObjectA callback for streaming data to anOutputStream.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDbxStreamWriter.ByteArrayCopierstatic classDbxStreamWriter.InputStreamCopierADbxStreamWriterthat gets its source data from the givenInputStream.
-
Constructor Summary
Constructors Constructor Description DbxStreamWriter()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidwrite(NoThrowOutputStream out)Write all the data you plan to write toout.
-
-
-
Method Detail
-
write
public abstract void write(NoThrowOutputStream out) throws E extends java.lang.Throwable
Write all the data you plan to write toout. Do not callclose()on the stream (the stream will be closed automatically).- Throws:
E extends java.lang.Throwable
-
-