Package com.dropbox.core
Class DbxStreamWriter<E extends 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
A callback for streaming data to an
OutputStream.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classADbxStreamWriterthat gets its source data from the givenInputStream. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidwrite(NoThrowOutputStream out) Write all the data you plan to write toout.
-
Constructor Details
-
DbxStreamWriter
public DbxStreamWriter()
-
-
Method Details
-
write
Write all the data you plan to write toout. Do not callclose()on the stream (the stream will be closed automatically).- Throws:
E
-