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 yourreadimplementation won't throw any checked exceptions, you should useRuntimeExceptionfor this parameter.
- Direct Known Subclasses:
DbxStreamReader.ByteArrayCopier,DbxStreamReader.OutputStreamCopier
public abstract class DbxStreamReader<E extends java.lang.Throwable> extends java.lang.ObjectA callback for streaming data from anInputStream.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDbxStreamReader.ByteArrayCopierstatic classDbxStreamReader.OutputStreamCopierADbxStreamReaderthat 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 voidread(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
-
-