|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.book.sword.state.AbstractOpenFileState
org.crosswire.jsword.book.sword.state.GenBookBackendState
public class GenBookBackendState
Stores the random access files required for processing the passage request The caller is required to close to correctly free resources and avoid File pointer leaks
The GNU Lesser General Public License for details.
Field Summary | |
---|---|
private File |
bdtFile
The raw data file |
private RandomAccessFile |
bdtRaf
The random access file for the raw data |
private SwordBookMetaData |
bookMetaData
|
private static String |
EXTENSION_BDT
Raw GenBook file extensions |
private static org.slf4j.Logger |
log
The log stream |
Constructor Summary | |
---|---|
GenBookBackendState(SwordBookMetaData bookMetaData)
This is default package access for forcing the use of the OpenFileStateManager to manage the creation. |
Method Summary | |
---|---|
RandomAccessFile |
getBdtRaf()
|
SwordBookMetaData |
getBookMetaData()
|
void |
releaseResources()
|
Methods inherited from class org.crosswire.jsword.book.sword.state.AbstractOpenFileState |
---|
close, getLastAccess, setLastAccess |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String EXTENSION_BDT
private File bdtFile
private RandomAccessFile bdtRaf
private SwordBookMetaData bookMetaData
private static final org.slf4j.Logger log
Constructor Detail |
---|
GenBookBackendState(SwordBookMetaData bookMetaData)
bookMetaData
- the appropriate metadata for the bookMethod Detail |
---|
public void releaseResources()
public RandomAccessFile getBdtRaf()
public SwordBookMetaData getBookMetaData()
|
Copyright ยจ 2003-2015 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |