Class DownloadFilesExample

java.lang.Object
com.blackberry.workspaces.sdk.api.examples.DownloadFilesExample

public class DownloadFilesExample
extends Object
Examples of downloading a file
Author:
tasfaw
  • Constructor Details

    • DownloadFilesExample

      public DownloadFilesExample​(APISession apiSession)
      Creates an instances of the DownloadFilesExample class
      Parameters:
      apiSession - An ApiSession instance to be used.
  • Method Details

    • downloadFileById

      public void downloadFileById​(String docId, int roomId, String destinationPath, String destinationDocName)
      DownloadFileById
      Parameters:
      docId -
      roomId -
      destinationPath -
      destinationDocName -
    • downloadFileByName

      public void downloadFileByName​(int roomId, String folderPath, String docName, String destinationPath, String destinationDocName)
      DownloadFileByName
      Parameters:
      roomId -
      folderPath -
      docName -
      destinationPath -
      destinationDocName -
    • downloadFileToBuffer

      public byte[] downloadFileToBuffer​(String docId)
      DownloadFileToBuffer
      Parameters:
      docId -
      Returns:
    • downloadProtectedFileById

      public void downloadProtectedFileById​(String docId, String destinationPath, String docName)
      Download the protected version of the document with the given Id to the destination path.
      Parameters:
      docId -
      destinationPath -
      docName -