|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.bridge.BookInstaller
public class BookInstaller
Exports the Book in SWORD's imp format. This is identical to SWORD's mod2imp. Note: it does not work with GenBook.
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
private InstallManager |
installManager
|
Constructor Summary | |
---|---|
BookInstaller()
|
Method Summary | |
---|---|
void |
deleteBook(Book book)
Uninstall a book. |
Book |
getBook(String repositoryName,
String bookName)
Get a Book from the repository. |
static Book |
getInstalledBook(String bookInitials)
Get a particular installed book by initials. |
static List |
getInstalledBooks()
Get a list of all installed books. |
static List |
getInstalledBooks(BookFilter filter)
Get a list of installed books by BookFilter. |
static List |
getInstalledBooks(String filterSpec)
Get a list of books by CustomFilter specification |
Map |
getInstallers()
Get a list of all known installers. |
Book |
getRepositoryBook(String repositoryName,
String bookInitials)
Get a particular installed book by initials. |
List |
getRepositoryBooks(String repositoryName)
Get a list of all known books for an installer. |
List |
getRepositoryBooks(String repositoryName,
BookFilter filter)
Get a list of books in a repository by BookFilter. |
List |
getRepositoryBooks(String repositoryName,
String filterSpec)
Get a list of books in a repository by CustomFilter specification |
void |
installBook(String repositoryName,
Book book)
Install a book, overwriting it if the book to be installed is newer. |
static void |
main(String[] args)
BookInstaller can manage the installation of books with the following capabilities. |
void |
reloadBookList(String repositoryName)
Reload the local cache for a remote repository. |
static void |
usage()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private InstallManager installManager
Constructor Detail |
---|
public BookInstaller()
Method Detail |
---|
public void deleteBook(Book book) throws BookException
book
- the book to delete
BookException
public Map getInstallers()
public static List getInstalledBooks()
public static List getInstalledBooks(BookFilter filter)
filter
- The book filterBookFilter
,
Books
public static List getInstalledBooks(String filterSpec)
filterSpec
- The filter stringBookFilters.getCustom(java.lang.String)
,
Books
public static Book getInstalledBook(String bookInitials)
bookInitials
- The book name to search for
public List getRepositoryBooks(String repositoryName)
repositoryName
-
public List getRepositoryBooks(String repositoryName, BookFilter filter)
filter
- The book filterBookFilter
,
Books
public List getRepositoryBooks(String repositoryName, String filterSpec)
filterSpec
- The filter stringBookFilters.getCustom(java.lang.String)
,
Books
public Book getRepositoryBook(String repositoryName, String bookInitials)
bookInitials
- The book name to search for
public void reloadBookList(String repositoryName) throws InstallException
repositoryName
-
InstallException
public Book getBook(String repositoryName, String bookName)
repositoryName
- the repository from which to get the bookbookName
- the name of the book to get
public void installBook(String repositoryName, Book book) throws BookException, InstallException
repositoryName
- the name of the repository from which to get the bookbook
- the book to get
BookException
InstallException
public static void main(String[] args)
uninstall | bookName | Uninstall book |
sources | List source repositories | |
list | List installed books | |
list | repositoryName | list available books from a repository |
reload | repositoryName | Reload the local cache for a repository |
install | repositoryName bookName | Install a book from a repository |
args
- public static void usage()
|
Copyright ยจ 2003-2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |