LocalCopy

public final class LocalCopy implements IDownloadLoc

A local download from disk

Constructors

Link copied to clipboard
public LocalCopy LocalCopy(File localFile)

Functions

Link copied to clipboard
public final File getLocalFile()
Link copied to clipboard
public String getName()

The name of download location.

Link copied to clipboard
public String getPath()

The path of download location.

Link copied to clipboard
public InputStream openInputStream()

Open an input stream for reading. The caller has the responsibility to close this.

Link copied to clipboard
public final Unit setLocalFile(File localFile)

Properties

Link copied to clipboard
private File localFile
Link copied to clipboard
private final String name

The name of download location.

Link copied to clipboard
private final String path

The path of download location.