public class DownloadPackage
extends java.lang.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 java.io.File |
outputFile |
protected java.io.OutputStream |
outputStream |
Constructor and Description |
---|
DownloadPackage(StorageObject object,
java.io.File outputFile) |
DownloadPackage(StorageObject object,
java.io.File outputFile,
boolean isUnzipping,
EncryptionUtil encryptionUtil) |
DownloadPackage(StorageObject object,
java.io.OutputStream outputStream) |
DownloadPackage(StorageObject object,
java.io.OutputStream outputStream,
boolean isUnzipping,
EncryptionUtil encryptionUtil) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getDataFile() |
StorageObject |
getObject() |
java.io.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 java.io.File outputFile
protected java.io.OutputStream outputStream
protected boolean isUnzipping
protected EncryptionUtil encryptionUtil
public DownloadPackage(StorageObject object, java.io.File outputFile)
public DownloadPackage(StorageObject object, java.io.File outputFile, boolean isUnzipping, EncryptionUtil encryptionUtil)
public DownloadPackage(StorageObject object, java.io.OutputStream outputStream)
public DownloadPackage(StorageObject object, java.io.OutputStream outputStream, boolean isUnzipping, EncryptionUtil encryptionUtil)
public StorageObject getObject()
public void setObject(StorageObject object)
public java.io.File getDataFile()
public boolean isAppendToFile()
public void setAppendToFile(boolean appendToFile)
appendToFile
- public java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException