Class DbxStreamWriter<E extends Throwable>

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

public abstract class DbxStreamWriter<E extends Throwable> extends Object
A callback for streaming data to an OutputStream.
  • Constructor Details

    • DbxStreamWriter

      public DbxStreamWriter()
  • Method Details

    • write

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