Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.eireneh.bible.book.raw
Class RawBibleDriver  view RawBibleDriver download RawBibleDriver.java

java.lang.Object
  extended bycom.eireneh.bible.book.AbstractBibleDriver
      extended bycom.eireneh.bible.book.raw.RawBibleDriver
All Implemented Interfaces:
com.eireneh.bible.book.BibleDriver

public class RawBibleDriver
extends com.eireneh.bible.book.AbstractBibleDriver

This represents all of the RawBibles.
Distribution Licence:
Project B is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
The License is available on the internet here, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below.
The copyright to this program is held by it's authors.


Nested Class Summary
(package private) static class RawBibleDriver.CustomFilenameFilter
          Check that the directories in the version directory really represent versions.
 
Field Summary
private  java.net.URL dir
          The directory URL
protected static RawBibleDriver driver
          The singleton driver
protected static com.eireneh.util.Logger log
          The log stream
private static boolean memory
          Do we instruct new RawBibles to cache data in memory?
 
Constructor Summary
private RawBibleDriver()
          Some basic driver initialization
 
Method Summary
 com.eireneh.bible.book.Bible createBible(java.lang.String name)
          Create a new blank Bible read for writing
 void deleteBible(java.lang.String name)
          Delete the set of files that make up this version.
private  void deleteFileURL(java.net.URL home, java.lang.String name, java.lang.StringBuffer errors)
          Convenience file delete and check routine.
 boolean exists(java.lang.String name)
          Does the named Bible exist?
 com.eireneh.bible.book.Bible getBible(java.lang.String name)
          Featch a currently existing Bible, read-only
 java.lang.String[] getBibleNames()
          Get a list of the Books available from the driver
static boolean getDefaultCacheData()
          Do the Bibles we create cache everything in memory or leave it on disk and then read it at query time.
 java.lang.String getDriverName()
          Some basic info about who we are
 void renameBible(java.lang.String old_name, java.lang.String new_name)
          Rename this version
static void setDefaultCacheData(boolean memory)
          Do the Bibles we create cache everything in memory or leave it on disk and then read it at query time.
 
Methods inherited from class com.eireneh.bible.book.AbstractBibleDriver
countBibles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dir

private java.net.URL dir
The directory URL


driver

protected static RawBibleDriver driver
The singleton driver


memory

private static boolean memory
Do we instruct new RawBibles to cache data in memory?


log

protected static com.eireneh.util.Logger log
The log stream

Constructor Detail

RawBibleDriver

private RawBibleDriver()
                throws java.net.MalformedURLException
Some basic driver initialization

Method Detail

getDriverName

public java.lang.String getDriverName()
Some basic info about who we are


getBibleNames

public java.lang.String[] getBibleNames()
                                 throws com.eireneh.bible.book.BookException
Get a list of the Books available from the driver


exists

public boolean exists(java.lang.String name)
Does the named Bible exist?


getBible

public com.eireneh.bible.book.Bible getBible(java.lang.String name)
                                      throws com.eireneh.bible.book.BookException
Featch a currently existing Bible, read-only


createBible

public com.eireneh.bible.book.Bible createBible(java.lang.String name)
                                         throws com.eireneh.bible.book.BookException
Create a new blank Bible read for writing


renameBible

public void renameBible(java.lang.String old_name,
                        java.lang.String new_name)
                 throws com.eireneh.bible.book.BookException
Rename this version


deleteBible

public void deleteBible(java.lang.String name)
                 throws com.eireneh.bible.book.BookException
Delete the set of files that make up this version.


deleteFileURL

private void deleteFileURL(java.net.URL home,
                           java.lang.String name,
                           java.lang.StringBuffer errors)
                    throws java.io.IOException
Convenience file delete and check routine.


getDefaultCacheData

public static boolean getDefaultCacheData()
Do the Bibles we create cache everything in memory or leave it on disk and then read it at query time.


setDefaultCacheData

public static void setDefaultCacheData(boolean memory)
Do the Bibles we create cache everything in memory or leave it on disk and then read it at query time.