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
All Methods Instance Methods Concrete Methods 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 Detail
-
DownloadFilesExample
public DownloadFilesExample(APISession apiSession)
Creates an instances of the DownloadFilesExample class- Parameters:
apiSession
- An ApiSession instance to be used.
-
-
Method Detail
-
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:
-
-