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, unpack
addBooksListener, fireBooksChanged, removeBooksListener
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addBooksListener, removeBooksListener
public String getType()
Installer
public int getSize(Book book)
Installer
book
- 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
AbstractSwordInstaller
download
in class AbstractSwordInstaller
job
- The way of noting progressdir
- The directory from which to download the filefile
- The file to downloadInstallException
private void copy(Progress job, URI uri, URI dest) throws LucidException
job
- uri
- dest
- LucidException
public boolean equals(Object object)
equals
in class AbstractSwordInstaller
public int hashCode()
hashCode
in class AbstractSwordInstaller