public class HttpSwordInstaller extends AbstractSwordInstaller
The GNU Lesser General Public License for details.catalogDirectory, CONF_DIR, DOWNLOAD_PREFIX, entries, FILE_LIST_GZ, host, indexDirectory, loaded, log, packageDirectory, proxyHost, proxyPort, SEARCH_DIR, ZIP_SUFFIX| Constructor and Description |
|---|
HttpSwordInstaller() |
| Modifier and Type | Method and Description |
|---|---|
private void |
copy(Progress job,
URI uri,
URI dest) |
protected void |
download(Progress job,
String dir,
String file,
URI dest)
Utility to download a file from a remote site
|
boolean |
equals(Object object) |
int |
getSize(Book book)
Return true if the book is not installed or there is a newer version to
install.
|
String |
getType()
Get the type of the Installer.
|
int |
hashCode() |
URI |
toRemoteURI(Book book) |
close, compareTo, downloadSearchIndex, getBook, getBooks, getBooks, getCachedIndexDir, getCachedIndexFile, getCatalogDirectory, getHost, getIndexDirectory, getInstallerDefinition, getPackageDirectory, getProxyHost, getProxyPort, install, isNewer, loadCachedIndex, reloadBookList, setCatalogDirectory, setHost, setIndexDirectory, setPackageDirectory, setProxyHost, setProxyPort, unpackaddBooksListener, fireBooksChanged, removeBooksListenerclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddBooksListener, removeBooksListenerpublic String getType()
Installerpublic int getSize(Book book)
Installerbook - The book meta-data to check on.public URI toRemoteURI(Book book)
book - The book meta-data to get a URI from.protected void download(Progress job, String dir, String file, URI dest) throws InstallException
AbstractSwordInstallerdownload in class AbstractSwordInstallerjob - The way of noting progressdir - The directory from which to download the filefile - The file to downloadInstallExceptionprivate void copy(Progress job, URI uri, URI dest) throws LucidException
job - uri - dest - LucidExceptionpublic boolean equals(Object object)
equals in class AbstractSwordInstallerpublic int hashCode()
hashCode in class AbstractSwordInstaller