|
||||||||||
| 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.RawLDBackendState
public class RawLDBackendState
State for RawLDBackend
The GNU Lesser General Public License for details.| Field Summary | |
|---|---|
private SwordBookMetaData |
bookMetaData
|
private File |
datFile
The data file |
private RandomAccessFile |
datRaf
The data random access file |
private File |
idxFile
The index file |
private RandomAccessFile |
idxRaf
The index random access file |
private static org.slf4j.Logger |
log
The log stream |
private int |
size
The number of entries in the book. |
| Constructor Summary | |
|---|---|
RawLDBackendState(SwordBookMetaData bookMetaData)
This is default package access for forcing the use of the OpenFileStateManager to manage the creation. |
|
| Method Summary | |
|---|---|
SwordBookMetaData |
getBookMetaData()
|
RandomAccessFile |
getDatRaf()
|
File |
getIdxFile()
|
RandomAccessFile |
getIdxRaf()
|
int |
getSize()
|
void |
releaseResources()
|
void |
setSize(int size)
|
| 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 int size
private File idxFile
private RandomAccessFile idxRaf
private File datFile
private RandomAccessFile datRaf
private SwordBookMetaData bookMetaData
private static final org.slf4j.Logger log
| Constructor Detail |
|---|
RawLDBackendState(SwordBookMetaData bookMetaData)
throws BookException
bookMetaData - the appropriate metadata for the book
BookException| Method Detail |
|---|
public void releaseResources()
public int getSize()
public File getIdxFile()
public RandomAccessFile getIdxRaf()
public RandomAccessFile getDatRaf()
public void setSize(int size)
size - the size to setpublic SwordBookMetaData getBookMetaData()
|
Copyright ยจ 2003-2015 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||