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 Summary
Constructors Constructor Description DownloadFilesExample(APISession apiSession)
Creates an instances of the DownloadFilesExample class -
Method Summary
Modifier and Type Method Description void
downloadFileById(String docId, int roomId, String destinationPath, String destinationDocName)
DownloadFileByIdvoid
downloadFileByName(int roomId, String folderPath, String docName, String destinationPath, String destinationDocName)
DownloadFileByNamebyte[]
downloadFileToBuffer(String docId)
DownloadFileToBuffervoid
downloadProtectedFileById(String docId, String destinationPath, String docName)
Download the protected version of the document with the given Id to the destination path.
-
Constructor Details
-
DownloadFilesExample
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
DownloadFileToBuffer- Parameters:
docId
-- Returns:
-
downloadProtectedFileById
Download the protected version of the document with the given Id to the destination path.- Parameters:
docId
-destinationPath
-docName
-
-