Package com.saperion.ngc.util
Class DownloadUtil
- java.lang.Object
- 
- com.saperion.ngc.util.DownloadUtil
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public final class DownloadUtil extends java.lang.Object implements java.io.SerializableUtility class used to download content.- See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.FilecreateTmpZip(java.util.List<Content> contentToDownload)static voiddownload(java.util.List<Content> contentToDownload)Downloads the specified documents.static voiddownloadAsZip(java.util.List<Content> contentToDownload)Downloads the specified documents.
 
- 
- 
- 
Method Detail- 
downloadpublic static void download(java.util.List<Content> contentToDownload) throws DownloadFailedException, AuthenticationException Downloads the specified documents.- Parameters:
- contentToDownload- content elements to download
- Throws:
- DownloadFailedException- when downloading the content failed
- AuthenticationException- re-logon required
 
 - 
downloadAsZippublic static void downloadAsZip(java.util.List<Content> contentToDownload) throws DownloadFailedException, AuthenticationException Downloads the specified documents.- Parameters:
- contentToDownload- content elements to download
- Throws:
- DownloadFailedException- when downloading the content failed
- AuthenticationException- re-logon required
 
 - 
createTmpZippublic static java.io.File createTmpZip(java.util.List<Content> contentToDownload) throws java.io.IOException, BinaryUnavailableException, AuthenticationException - Throws:
- java.io.IOException
- BinaryUnavailableException
- AuthenticationException
 
 
- 
 
-