Class DbxStreamWriter.InputStreamCopier

  • Enclosing class:
    DbxStreamWriter<E extends java.lang.Throwable>

    public static final class DbxStreamWriter.InputStreamCopier
    extends DbxStreamWriter<java.io.IOException>
    A DbxStreamWriter that gets its source data from the given InputStream. The InputStream will be closed automatically.
    • Constructor Detail

      • InputStreamCopier

        public InputStreamCopier​(java.io.InputStream source)
    • Method Detail

      • write

        public void write​(NoThrowOutputStream out)
                   throws java.io.IOException
        Description copied from class: DbxStreamWriter
        Write all the data you plan to write to out. Do not call close() on the stream (the stream will be closed automatically).
        Specified by:
        write in class DbxStreamWriter<java.io.IOException>
        Throws:
        java.io.IOException