Package com.onfido.api
Class FileDownload
- java.lang.Object
-
- com.onfido.api.FileDownload
-
public class FileDownload extends Object
A wrapper class for any file downloaded from the API. Stores an content as an InputStream and file type as a String.
-
-
Field Summary
Fields Modifier and Type Field Description InputStreamcontentThe content of the downloaded file.StringcontentTypeThe file type of the associated content.
-
Constructor Summary
Constructors Constructor Description FileDownload(InputStream content, String contentType)Instantiates a new File download object.
-
-
-
Field Detail
-
content
public final InputStream content
The content of the downloaded file.
-
contentType
public final String contentType
The file type of the associated content.
-
-
Constructor Detail
-
FileDownload
public FileDownload(InputStream content, String contentType)
Instantiates a new File download object.- Parameters:
content- the content of the filecontentType- the file type of the associated content
-
-