[jsword-svn] jsword/java/jsword/org/crosswire/jsword/util s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Fri Mar 18 18:56:49 MST 2005


Update of /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/util
In directory www.crosswire.org:/tmp/cvs-serv10359/java/jsword/org/crosswire/jsword/util

Modified Files:
	IndexDownloader.java 
Log Message:
Made Book the primary interface to a module and put BookMetaData within it. All of BookMetaData is accessible through the Book interface.

Index: IndexDownloader.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/util/IndexDownloader.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** IndexDownloader.java	6 Mar 2005 20:21:47 -0000	1.2
--- IndexDownloader.java	19 Mar 2005 01:56:47 -0000	1.3
***************
*** 5,10 ****
  
  import org.crosswire.common.util.NetUtil;
  import org.crosswire.jsword.book.BookException;
- import org.crosswire.jsword.book.BookMetaData;
  import org.crosswire.jsword.book.install.InstallException;
  import org.crosswire.jsword.book.install.Installer;
--- 5,10 ----
  
  import org.crosswire.common.util.NetUtil;
+ import org.crosswire.jsword.book.Book;
  import org.crosswire.jsword.book.BookException;
  import org.crosswire.jsword.book.install.InstallException;
  import org.crosswire.jsword.book.install.Installer;
***************
*** 47,53 ****
      /**
       * Download and install a search index
!      * @param bmd The book to get an index for
       */
!     public static void downloadIndex(BookMetaData bmd, Installer installer) throws IOException, InstallException, BookException
      {
          // Get a temp home
--- 47,53 ----
      /**
       * Download and install a search index
!      * @param book The book to get an index for
       */
!     public static void downloadIndex(Book book, Installer installer) throws IOException, InstallException, BookException
      {
          // Get a temp home
***************
*** 57,65 ****
          {
              // Now we know what installer to use, download to the temp file
!             installer.downloadSearchIndex(bmd, tempDownload);
  
              // And install from that file.
              IndexManager idxman = IndexManagerFactory.getIndexManager();
!             idxman.installDownloadedIndex(bmd, tempDownload);
          }
          finally
--- 57,65 ----
          {
              // Now we know what installer to use, download to the temp file
!             installer.downloadSearchIndex(book, tempDownload);
  
              // And install from that file.
              IndexManager idxman = IndexManagerFactory.getIndexManager();
!             idxman.installDownloadedIndex(book, tempDownload);
          }
          finally



More information about the jsword-svn mailing list