public class DownloadPackage extends Object
StorageObject
with an
output file or output stream to which the object's data will be written.Modifier and Type | Field and Description |
---|---|
protected EncryptionUtil |
encryptionUtil |
protected boolean |
isUnzipping |
protected StorageObject |
object |
protected File |
outputFile |
protected OutputStream |
outputStream |
Constructor and Description |
---|
DownloadPackage(StorageObject object,
File outputFile) |
DownloadPackage(StorageObject object,
File outputFile,
boolean isUnzipping,
EncryptionUtil encryptionUtil) |
DownloadPackage(StorageObject object,
OutputStream outputStream) |
DownloadPackage(StorageObject object,
OutputStream outputStream,
boolean isUnzipping,
EncryptionUtil encryptionUtil) |
Modifier and Type | Method and Description |
---|---|
File |
getDataFile() |
StorageObject |
getObject() |
OutputStream |
getOutputStream()
Creates an output stream to receive the object's data.
|
boolean |
isAppendToFile() |
void |
setAppendToFile(boolean appendToFile)
Data will be appended to the target file instead of overwriting it.
|
void |
setObject(StorageObject object) |
protected StorageObject object
protected File outputFile
protected OutputStream outputStream
protected boolean isUnzipping
protected EncryptionUtil encryptionUtil
public DownloadPackage(StorageObject object, File outputFile)
public DownloadPackage(StorageObject object, File outputFile, boolean isUnzipping, EncryptionUtil encryptionUtil)
public DownloadPackage(StorageObject object, OutputStream outputStream)
public DownloadPackage(StorageObject object, OutputStream outputStream, boolean isUnzipping, EncryptionUtil encryptionUtil)
public StorageObject getObject()
public void setObject(StorageObject object)
public File getDataFile()
public boolean isAppendToFile()
public void setAppendToFile(boolean appendToFile)
appendToFile
- public OutputStream getOutputStream() throws IOException
IOException
Copyright © 2006–2018. All rights reserved.