public final class

DownloadRequest

extends Object
java.lang.Object
   ↳ com.pspdfkit.document.download.DownloadRequest

Class Overview

A request for downloading a PDF document. This class is immutable. To create an instance use the DownloadRequest.Builder.

Summary

Nested Classes
class DownloadRequest.Builder Builder for a DownloadRequest
Fields
public final File outputFile Output file where the download will be written to.
public final boolean overwriteExisting If set to true and the outputFile already exists, the document will be re-download and the file overwritten.
public final DownloadSource source Remote source for downloading the document.
Public Methods
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public final File outputFile

Output file where the download will be written to.

public final boolean overwriteExisting

If set to true and the outputFile already exists, the document will be re-download and the file overwritten. If set to false, the download will complete immediately returning the already existing file.

public final DownloadSource source

Remote source for downloading the document.

Public Methods

public String toString ()