A C D F G I R S T U Y

A

ask(String) - Method in class updater.deciders.ConsoleBasedDecider
 
ask(String) - Method in class updater.deciders.GUIBasedDecider
 
ask(String) - Method in interface updater.deciders.IDecider
 
ask(String) - Method in class updater.deciders.YesDeciderStub
 

C

ConsoleBasedDecider - Class in updater.deciders
A decider that uses the console to interact with the user.
ConsoleBasedDecider() - Constructor for class updater.deciders.ConsoleBasedDecider
 
copy(File, File) - Static method in class updater.utils.FileUtils
 
createFile(File, String) - Static method in class updater.utils.FileUtils
 

D

download(String, File) - Method in class updater.downloaders.Downloader
 
download(String, File) - Method in interface updater.downloaders.IDownloader
 
download(String, File) - Method in class updater.downloaders.ReliableDownloaderStub
Creates file localFileName, with empty contents.
downloadAsString(String) - Method in class updater.downloaders.Downloader
 
downloadAsString(String) - Method in interface updater.downloaders.IDownloader
Returns the contents of as a String.
downloadAsString(String) - Method in class updater.downloaders.ReliableDownloaderStub
If localFileName is "latest-version-remote.txt" returns "1.1".
Downloader - Class in updater.downloaders
Implements the IDownloader interface using a URLConnection.
Downloader() - Constructor for class updater.downloaders.Downloader
Creates a new instance of Downloader

F

FileUtils - Class in updater.utils
Contains utility methods to read and write the contents of files as Strings.

G

getContents(File) - Static method in class updater.utils.FileUtils
 
GUIBasedDecider - Class in updater.deciders
A decider that pops up a window to interact with the user.
GUIBasedDecider() - Constructor for class updater.deciders.GUIBasedDecider
 

I

IDecider - Interface in updater.deciders
Abstracts interaction with a user.
IDownloader - Interface in updater.downloaders
Manages downloading of files via HTTP.

R

ReliableDownloaderStub - Class in updater.downloaders
This is a class used in testing the updater.
ReliableDownloaderStub() - Constructor for class updater.downloaders.ReliableDownloaderStub
Creates a new instance of ReliableDownloaderStub.

S

setupRoot() - Method in class updater.UpdaterTest
 

T

tell(String) - Method in class updater.deciders.ConsoleBasedDecider
 
tell(String) - Method in class updater.deciders.GUIBasedDecider
 
tell(String) - Method in interface updater.deciders.IDecider
 
tell(String) - Method in class updater.deciders.YesDeciderStub
 

U

update(IDownloader, IDecider, File) - Method in class updater.Updater
 
update() - Method in class updater.UpdaterTest
Tests the following scenario: If: version 1 is the latest installed version, and version 2 is available for download, and the user answers `yes' to perform the update, Then: the update occurs, and afterwards: 1.
updater - package updater
 
Updater - Class in updater
Implements a self-updater.
Updater() - Constructor for class updater.Updater
 
updater.deciders - package updater.deciders
 
updater.downloaders - package updater.downloaders
 
updater.utils - package updater.utils
 
UpdaterTest - Class in updater
JUnit tests for the self-updater.
UpdaterTest() - Constructor for class updater.UpdaterTest
 

Y

YesDeciderStub - Class in updater.deciders
This is a class used in testing the updater.
YesDeciderStub() - Constructor for class updater.deciders.YesDeciderStub
Creates a new instance of YesDecider

A C D F G I R S T U Y