Class DbxStreamReader<E extends Throwable>

java.lang.Object
com.dropbox.core.DbxStreamReader<E>
Type Parameters:
E - The type of exception that your read(com.dropbox.core.NoThrowInputStream) implementation might throw If your read implementation won't throw any checked exceptions, you should use RuntimeException for this parameter.
Direct Known Subclasses:
DbxStreamReader.ByteArrayCopier, DbxStreamReader.OutputStreamCopier

public abstract class DbxStreamReader<E extends Throwable> extends Object
A callback for streaming data from an InputStream.
  • Constructor Details

    • DbxStreamReader

      public DbxStreamReader()
  • Method Details

    • read

      public abstract void read(NoThrowInputStream in) throws E
      Write all the data you plan to write to in. Do not call close() on the stream (the stream will be closed automatically).
      Throws:
      E