if (state != JournalImpl.STATE_LOADED)
{
throw new IllegalStateException("The journal is not loaded " + state);
}
final IOAsyncTask callback;
int size = encoder.getEncodeSize();
// We take into account the fileID used on the Header
if (size > fileSize - currentFile.getFile().calculateBlockStart(JournalImpl.SIZE_HEADER))