Class 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 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 file
        contentType - the file type of the associated content