/** * Read the footer data for the current database file. * @throws IOException if the footer cannot be read from the file * @throws MetakitException if the footer is not valid for the Metakit format */ private void readFooter() throws IOException, MetakitException { stream.skipBytes(4); long headerLocation = stream.readInt(); stream.skipBytes(4); long tocLocation = stream.readInt(); stream.seek(tocLocation); readTOC(); }