public interface Installer extends BookList
To start with I only envisage that we use Sword sourced Bible data however the rest of the system is designed to be able to use data from e-Sword, OLB, etc.
The GNU Lesser General Public License for details.| Modifier and Type | Method and Description |
|---|---|
void |
close()
remove the cached book list to clear memory
|
void |
downloadSearchIndex(Book book,
URI tempDest)
Download a search index for the given Book.
|
Book |
getBook(String book)
Get a Book matching the name from the local cache.
|
List<Book> |
getBooks()
Get a list of BookMetaData objects that represent downloadable books.
|
String |
getInstallerDefinition()
Accessor for the URI
|
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.
|
void |
install(Book book)
Download and install a book locally.
|
boolean |
isNewer(Book book)
Return true if the book is not installed or there is a newer version to
install.
|
void |
reloadBookList()
Re-fetch a list of names from the remote source.
|
URI |
toRemoteURI(Book book) |
addBooksListener, getBooks, removeBooksListenerString getType()
String getInstallerDefinition()
URI toRemoteURI(Book book)
book - The book meta-data to get a URI from.List<Book> getBooks()
getBooks in interface BookListreloadBookList()Book getBook(String book)
book - the book nameint getSize(Book book)
book - The book meta-data to check on.boolean isNewer(Book book)
book - The book meta-data to check on.void reloadBookList()
throws InstallException
InstallExceptionvoid install(Book book) throws InstallException
book - The book to installInstallExceptionvoid downloadSearchIndex(Book book, URI tempDest) throws InstallException
book - The book to download a search index for.tempDest - A temporary URI for downloading to. Passed to the BookIndexer
for installation.InstallExceptionvoid close()