List<String> extentDecls = new ArrayList<String>();
String lastLine = readExtents(br, extentDecls);
DiskDatabase diskDatabase = readDiskDatabase(br, lastLine);
List<Extent> extents = new ArrayList<Extent>(extentDecls.size());
ExtentDeclaration mainExtentDecl = null;
for (String decl : extentDecls) {
ExtentDeclaration extentDecl = readExtentDeclaration(decl, file);
if (extentDecl.isMainExtent()) {
mainExtentDecl = extentDecl;
} else {
FileDescriptor fileDescriptor =
IOUtils.readFileDescriptor(extentDecl.getExtentFile());
Extent extent = createExtent(fileDescriptor, extentDecl);
extents.add(extent);
}
}