public function close() { $this->writeLocationTable(); fclose($this->filePointer); $this->levelProvider = null; }