|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Installer
An interface that allows us to download from a specific source of Bible data. It is important that implementor of this interface define equals() and hashcode() properly.
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.
for license details.
The copyright to this program is held by it's authors.
Method Summary | |
---|---|
void |
downloadSearchIndex(Book book,
URL tempDest)
Download a search index for the given Book. |
List |
getBooks()
Get a list of BookMetaData objects that represent downloadable books. |
String |
getInstallerDefinition()
Accessor for the URL |
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()
Refetch a list of names from the remote source. |
URL |
toRemoteURL(Book book)
|
Methods inherited from interface org.crosswire.jsword.book.BookList |
---|
addBooksListener, getBooks, removeBooksListener |
Method Detail |
---|
String getType()
String getInstallerDefinition()
URL toRemoteURL(Book book)
book
- The book meta-data to get a URL from.
List getBooks()
getBooks
in interface BookList
reloadBookList()
int 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
InstallException
void install(Book book) throws InstallException
book
- The book to install
InstallException
void downloadSearchIndex(Book book, URL tempDest) throws InstallException
book
- The book to download a search index for.tempDest
- A temporary URL for downloading to. Passed to the
IndexManager for installation.
InstallException
|
Copyright ? 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |