try {
file = new FileDataInput(dbFile, this.annotator);
this.fileName = dbFile.getAbsolutePath();
file.annotate(0, (int) HEADER_SIZE, "Header");
// start of header
readMagicHeader(file);
this.pageSize = readPageSize(file);
this.fileFormatWrite = file.readByte() == 1 ? FileFormat.LEGACY : FileFormat.WAL;
file.annotateLastByte("writeFileFormat", this.fileFormatWrite);