Project CASUAL
API for CASUAL
 All Classes Namespaces Functions Variables
Public Member Functions | Static Public Member Functions | List of all members
com.casual_dev.zodui.Downloader.ZodDownloader Class Reference

Public Member Functions

 ZodDownloader (URL url, String title)
 
void downloadCaspac (CASUALZodMainUI ui)
 
void processRemoteCASPAC ()
 
String waitForDownload () throws InterruptedException
 
int getExpectedBytes ()
 
String getTitle ()
 

Static Public Member Functions

static boolean isDownloading ()
 

Detailed Description

Handles initial downloading of CASUAL Components

Author
adamoutler

Constructor & Destructor Documentation

com.casual_dev.zodui.Downloader.ZodDownloader.ZodDownloader ( URL  url,
String  title 
)

instantiates a download session for ZodDownloader

Parameters
urlURL to download from
titletitle of download for user to see

Member Function Documentation

void com.casual_dev.zodui.Downloader.ZodDownloader.downloadCaspac ( CASUALZodMainUI  ui)

downloads a CASPAC and updates UI

Parameters
uiUser Interface to be updated.
int com.casual_dev.zodui.Downloader.ZodDownloader.getExpectedBytes ( )

returns the expected KB that will be downloaded for this ZodDownloader

Returns
expected kb
String com.casual_dev.zodui.Downloader.ZodDownloader.getTitle ( )
Returns
the title
void com.casual_dev.zodui.Downloader.ZodDownloader.processRemoteCASPAC ( )

processes the caspac

String com.casual_dev.zodui.Downloader.ZodDownloader.waitForDownload ( ) throws InterruptedException

waits for download. will lock if download is not called first. Will never lock if download was called.

Returns
string path to file
Exceptions
InterruptedExceptionif interrupted

The documentation for this class was generated from the following file: