pageFile.readPage(page.getPageId(), chunk.getData());
chunk.setOffset(0);
chunk.setLength(pageFile.getPageSize());
DataByteArrayInputStream in = new DataByteArrayInputStream(chunk);
page.read(in);
chunk.setOffset(Page.PAGE_HEADER_SIZE);
if (page.getType() == Page.PAGE_END_TYPE) {
chunk.setLength((int)(page.getNext()));