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 yourwrite
implementation won't throw any checked exceptions, you should useRuntimeException
for this parameter.
- Direct Known Subclasses:
DbxStreamWriter.ByteArrayCopier
,DbxStreamWriter.InputStreamCopier
public abstract class DbxStreamWriter<E extends java.lang.Throwable> extends java.lang.Object
A callback for streaming data to anOutputStream
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DbxStreamWriter.ByteArrayCopier
static class
DbxStreamWriter.InputStreamCopier
ADbxStreamWriter
that 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 void
write(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
-
-