|
||||||||||
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.RawBackendState
public class RawBackendState
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 SwordBookMetaData |
bookMetaData
|
private static org.slf4j.Logger |
log
The log stream |
protected File |
ntIdxFile
|
protected RandomAccessFile |
ntIdxRaf
|
protected File |
ntTextFile
|
protected RandomAccessFile |
ntTextRaf
|
protected File |
otIdxFile
|
protected RandomAccessFile |
otIdxRaf
|
protected File |
otTextFile
|
protected RandomAccessFile |
otTextRaf
|
Constructor Summary | |
---|---|
RawBackendState(SwordBookMetaData bookMetaData)
This is default package access for forcing the use of the OpenFileStateManager to manage the creation. |
Method Summary | |
---|---|
SwordBookMetaData |
getBookMetaData()
|
File |
getIdxFile(Testament testament)
Get the index file for the given testament. |
RandomAccessFile |
getIdxRaf(Testament testament)
Get the index file for the given testament. |
RandomAccessFile |
getNtTextRaf()
|
RandomAccessFile |
getOtTextRaf()
|
File |
getTextFile(Testament testament)
Get the text file for the given testament. |
RandomAccessFile |
getTextRaf(Testament testament)
Get the text file for the given testament. |
boolean |
isWritable()
|
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 |
---|
protected RandomAccessFile otIdxRaf
protected RandomAccessFile ntIdxRaf
protected RandomAccessFile otTextRaf
protected RandomAccessFile ntTextRaf
protected File ntIdxFile
protected File ntTextFile
protected File otIdxFile
protected File otTextFile
private SwordBookMetaData bookMetaData
private static final org.slf4j.Logger log
Constructor Detail |
---|
RawBackendState(SwordBookMetaData bookMetaData) throws BookException
bookMetaData
- the appropriate metadata for the book
BookException
Method Detail |
---|
public boolean isWritable()
public void releaseResources()
public RandomAccessFile getIdxRaf(Testament testament)
testament
- the testament for the file
public RandomAccessFile getTextRaf(Testament testament)
testament
- the testament for the file
public RandomAccessFile getOtTextRaf()
public RandomAccessFile getNtTextRaf()
public File getTextFile(Testament testament)
testament
- the testament for the file
public File getIdxFile(Testament testament)
testament
- the testament for the file
public SwordBookMetaData getBookMetaData()
|
Copyright ยจ 2003-2015 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |