|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.book.basic.AbstractBookDriver
org.crosswire.jsword.book.sword.SwordBookDriver
public class SwordBookDriver
This represents all of the Sword Books (aka modules).
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
private static BookDriver |
INSTANCE
A shared instance of this driver. |
private static Logger |
log
The log stream |
Constructor Summary | |
---|---|
SwordBookDriver()
Some basic name initialization |
Method Summary | |
---|---|
private Book |
createBook(SwordBookMetaData sbmd,
File progdir)
Create a Book appropriate for the BookMetaData |
void |
delete(Book dead)
Delete this Book from the system. |
Book[] |
getBooks()
This method should only be used by Bibles at startup to register the Bibles known at start time. |
private void |
getBooks(List valid,
File bookDir)
|
String |
getDriverName()
A short name for this BookDriver |
static BookDriver |
instance()
Get the singleton instance of this driver. |
boolean |
isDeletable(Book dead)
Is this book able to be deleted. |
static void |
registerNewBook(SwordBookMetaData sbmd,
File bookpath)
A helper class for the SwordInstaller to tell us that it has copied a new Book into our install directory |
Methods inherited from class org.crosswire.jsword.book.basic.AbstractBookDriver |
---|
create, isWritable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final BookDriver INSTANCE
private static final Logger log
Constructor Detail |
---|
public SwordBookDriver()
Method Detail |
---|
public String getDriverName()
BookDriver
public Book[] getBooks()
BookDriver
private void getBooks(List valid, File bookDir)
public boolean isDeletable(Book dead)
BookDriver
isDeletable
in interface BookDriver
isDeletable
in class AbstractBookDriver
dead
- the book to be deleted
public void delete(Book dead) throws BookException
BookDriver
delete
in interface BookDriver
delete
in class AbstractBookDriver
BookException
- If the Book can't be deleted.public static BookDriver instance()
public static void registerNewBook(SwordBookMetaData sbmd, File bookpath) throws BookException
sbmd
- The SwordBookMetaData object for the new Bookbookpath
- The path that we have installed to
BookException
private Book createBook(SwordBookMetaData sbmd, File progdir) throws BookException
BookException
|
Copyright ยจ 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |