copyFrom: (input) => { dumpv("CF length: " + this.length); let copying = StreamUtils.copyStream(input, stream, this.length); deferred.resolve(copying); return copying; },
copyFrom: (input) => { dumpv("CF length: " + this.length); deferred.resolve(StreamUtils.copyStream(input, stream, this.length)); return deferred.promise; },
copyTo: (output) => { dumpv("CT length: " + this.length); let copying = StreamUtils.copyStream(stream, output, this.length); deferred.resolve(copying); return copying; },
copyTo: (output) => { dumpv("CT length: " + this.length); deferred.resolve(StreamUtils.copyStream(stream, output, this.length)); return deferred.promise; },