public class

DownloadResponseImpl

extends BoxResponseImpl
implements DownloadResponse
java.lang.Object
   ↳ cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.functions.BoxResponseImpl
     ↳ cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.functions.DownloadResponseImpl

Summary

Fields
private boolean asFile if true, will download as a File object, if false then download as bytes array.
private File outFile the File object downloaded.
private byte[] rawData the raw data downloaded.
[Expand]
Inherited Fields
From class cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.functions.BoxResponseImpl
Public Constructors
DownloadResponseImpl()
Public Methods
File getOutFile()
byte[] getRawData()
boolean isAsFile()
void setAsFile(boolean asFile)
void setOutFile(File outFile)
void setRawData(byte[] rawData)
[Expand]
Inherited Methods
From class cn.com.believer.songyuanframework.openapi.storage.box.impl.simple.functions.BoxResponseImpl
From class java.lang.Object
From interface cn.com.believer.songyuanframework.openapi.storage.box.functions.BoxResponse
From interface cn.com.believer.songyuanframework.openapi.storage.box.functions.DownloadResponse

Fields

private boolean asFile

if true, will download as a File object, if false then download as bytes array.

private File outFile

the File object downloaded.

private byte[] rawData

the raw data downloaded.

Public Constructors

public DownloadResponseImpl ()

Public Methods

public File getOutFile ()

Returns
  • the outFile

public byte[] getRawData ()

Returns
  • the rawData

public boolean isAsFile ()

Returns
  • the asFile

public void setAsFile (boolean asFile)

Parameters
asFile The asFile to set

public void setOutFile (File outFile)

Parameters
outFile The outFile to set

public void setRawData (byte[] rawData)

Parameters
rawData The rawData to set