public class RawBackendState extends AbstractOpenFileState
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER
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 and Description |
---|
RawBackendState(BookMetaData bookMetaData)
This is default package access for forcing the use of the
OpenFileStateManager to manage the creation.
|
Modifier and Type | Method and Description |
---|---|
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() |
close, getBookMetaData, getLastAccess, setLastAccess
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 static final org.slf4j.Logger LOGGER
RawBackendState(BookMetaData bookMetaData) throws BookException
bookMetaData
- the appropriate metadata for the bookBookException
public boolean isWritable()
public void releaseResources()
public RandomAccessFile getIdxRaf(Testament testament)
testament
- the testament for the filepublic RandomAccessFile getTextRaf(Testament testament)
testament
- the testament for the filepublic RandomAccessFile getOtTextRaf()
public RandomAccessFile getNtTextRaf()
public File getTextFile(Testament testament)
testament
- the testament for the file