FileDescriptor
public abstract class FileDescriptor extends Object
Constructors
Name | Description |
---|---|
public FileDescriptor()
|
Methods
inputStream
public abstract InputStream inputStream()
This method returns the inputStream from the response body.
ReturnValue
Name | Description |
---|---|
InputStream
|
totalSize
public abstract long totalSize()
Total size of the downloaded file in bytes.
ReturnValue
Name | Description |
---|---|
long
|
create
public static FileDescriptor create(InputStream inputStream, long length)
Creates new instance ofFileDescriptor.
Parameters
Name | Description |
---|---|
InputStream inputStream
|
InputStream of file. |
long length
|
Total size of a file. |
ReturnValue
Name | Description |
---|---|
FileDescriptor
|
New FileDescriptor. |
POJO class Represents File downloaded from cloud.