protected function parsePalmDb()
    {
        $file = $this->file;
        $file->fseek($this->palmDbHeaderStart);
        $content = $file->fread(2);
        $records = hexdec(bin2hex($content));

        $this->palmDbHeader = new PalmDbHeader();
        for ($i = 0; $i < $records; ++$i) {
            $this->palmDbHeader->addRecord(new PalmRecord(
                $this->readData($file, 4),
                $this->readData($file, 1),
                $this->readData($file, 3)
            ));
        }
    }