log.debug("Initializing store '"+baseName+"' filesystem");
try
{
allocationTableFile = new File(dataFolder,baseName+ALLOCATION_TABLE_SUFFIX);
if (!allocationTableFile.canRead())
throw new DataStoreException("Cannot access store allocation table : "+allocationTableFile.getAbsolutePath());
allocationTableRandomAccessFile = new RandomAccessFile(allocationTableFile,"rw");
dataFile = new File(dataFolder,baseName+DATA_FILE_SUFFIX);
if (!dataFile.canRead())
throw new DataStoreException("Cannot access store data file : "+dataFile.getAbsolutePath());
dataRandomAccessFile = new RandomAccessFile(dataFile,"rw");
}
catch (FileNotFoundException e)
{
throw new DataStoreException("Cannot access file : "+e.getMessage());
}
}