Package com.dropbox.core
Class DbxStreamReader<E extends Throwable>
java.lang.Object
com.dropbox.core.DbxStreamReader<E>
- Type Parameters:
E- The type of exception that yourread(com.dropbox.core.NoThrowInputStream)implementation might throw If yourreadimplementation won't throw any checked exceptions, you should useRuntimeExceptionfor this parameter.
- Direct Known Subclasses:
DbxStreamReader.ByteArrayCopier,DbxStreamReader.OutputStreamCopier
A callback for streaming data from an
InputStream.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classADbxStreamReaderthat gets its source data from the givenOutputStream. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidWrite all the data you plan to write toin.
-
Constructor Details
-
DbxStreamReader
public DbxStreamReader()
-
-
Method Details
-
read
Write all the data you plan to write toin. Do not callclose()on the stream (the stream will be closed automatically).- Throws:
E
-