public class RawFileBackendState extends RawBackendState
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
private File |
incfile |
static String |
INCFILE |
private int |
incfileValue |
private static org.slf4j.Logger |
LOGGER
The log stream
|
ntIdxFile, ntIdxRaf, ntTextFile, ntTextRaf, otIdxFile, otIdxRaf, otTextFile, otTextRaf
Constructor and Description |
---|
RawFileBackendState(BookMetaData bookMetaData)
This is default package access for forcing the use of the
OpenFileStateManager to manage the creation.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
existsAndCanReadAndWrite(File file)
Returns true if the file exists, can be read and can be written to.
|
File |
getIncfile() |
int |
getIncfileValue() |
private void |
initIncFile() |
boolean |
isWritable() |
private int |
readIncfile() |
void |
setIncfile(File incfile) |
void |
setIncfileValue(int incValue) |
getIdxFile, getIdxRaf, getNtTextRaf, getOtTextRaf, getTextFile, getTextRaf, releaseResources
close, getBookMetaData, getLastAccess, setLastAccess
public static final String INCFILE
private File incfile
private int incfileValue
private static final org.slf4j.Logger LOGGER
RawFileBackendState(BookMetaData bookMetaData) throws BookException
bookMetaData
- the appropriate metadata for the bookBookException
public boolean isWritable()
isWritable
in class RawBackendState
private boolean existsAndCanReadAndWrite(File file)
file
- the fileprivate int readIncfile() throws IOException
IOException
private void initIncFile()
public int getIncfileValue()
public void setIncfileValue(int incValue)
public File getIncfile()
public void setIncfile(File incfile)
incfile
- the incfile to set