Package com.dropbox.core
Class DbxStreamReader<E extends java.lang.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 yourread
implementation won't throw any checked exceptions, you should useRuntimeException
for this parameter.
- Direct Known Subclasses:
DbxStreamReader.ByteArrayCopier
,DbxStreamReader.OutputStreamCopier
public abstract class DbxStreamReader<E extends java.lang.Throwable> extends java.lang.Object
A callback for streaming data from anInputStream
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DbxStreamReader.ByteArrayCopier
static class
DbxStreamReader.OutputStreamCopier
ADbxStreamReader
that gets its source data from the givenOutputStream
.
-
Constructor Summary
Constructors Constructor Description DbxStreamReader()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
read(NoThrowInputStream in)
Write all the data you plan to write toin
.
-
-
-
Method Detail
-
read
public abstract void read(NoThrowInputStream in) throws E extends java.lang.Throwable
Write all the data you plan to write toin
. Do not callclose()
on the stream (the stream will be closed automatically).- Throws:
E extends java.lang.Throwable
-
-