Summary: Methods | Inherited Methods | [Expand All]
public class

# StreamDownloadTask.TaskSnapshot

extends Object
implements StorageTask.ProvideError

java.lang.Object
↳ | com.google.firebase.storage.StreamDownloadTask.TaskSnapshot

## Class Overview

Encapsulates state about the running `StreamDownloadTask`

## Summary

Public Methods
long | getBytesTransferred()
Exception | getError()
StorageReference | getStorage()
InputStream | getStream()
StorageTask<TResult extends StorageTask.ProvideError> | getTask()
long | getTotalByteCount()

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface com.google.firebase.storage.StorageTask.ProvideError
abstract Exception | getError()

## Public Methods

#### public long getBytesTransferred ()

##### Returns

- the total bytes downloaded so far.

#### public Exception getError ()

##### Returns

- the last error encountered.

#### public StorageReference getStorage ()

##### Returns

- the target of the upload.

#### public InputStream getStream ()

##### Returns

- The stream that represents downloaded bytes from Storage. This stream should be closed either in `doInBackground(TaskSnapshot, InputStream)` or in `OnSuccessListener`, `OnFailureListener`

#### public StorageTask<TResult extends StorageTask.ProvideError> getTask ()

##### Returns

- the `StorageTask` for this state.

#### public long getTotalByteCount ()

##### Returns

- the total bytes to upload..