long totalPages = 0;
BigInteger totalTiles = BigInteger.ZERO;
for (int z = zoomStart; z <= zoomStop; z++) {
PageLevelInfo pageInfo = pp.getPageInfo(z);
long levelPages = pageInfo.pagesX * pageInfo.pagesY;
BigInteger tilesPerPage = pageInfo.tilesPerPage;
totalPages += levelPages;
totalTiles = totalTiles.add(tilesPerPage.multiply(BigInteger.valueOf(levelPages)));
System.out.println(FilePathGenerator.zeroPadder(z, 2) + ": (total pages ="
+ nf.format(totalPages) + ") " + pageInfo.toString() + "(level tiles = "
+ nf.format(tilesPerPage.multiply(BigInteger.valueOf(levelPages))) + ") ");
}
System.out.println("Total pages: " + totalPages);
}