private void findNextPage() { if (!pageFile.isLoaded()) { throw new IllegalStateException("Cannot iterate the pages when the page file is not loaded"); } if (nextPage != null) { return; } try { while (nextId < pageFile.getPageCount()) { Page page = load(nextId, null); if (includeFreePages || page.getType() != Page.PAGE_FREE_TYPE) { nextPage = page; return; } else { nextId++; } } } catch (IOException e) { } }
private void findNextPage() { if (!pageFile.isLoaded()) { throw new IllegalStateException("Cannot iterate the pages when the page file is not loaded"); } if (nextPage != null) { return; } try { while (nextId < pageFile.getPageCount()) { Page page = load(nextId, null); if (includeFreePages || page.getType() != Page.PAGE_FREE_TYPE) { nextPage = page; return; } else { nextId++; } } } catch (IOException e) { } }
private void findNextPage() { if (!pageFile.isLoaded()) { throw new IllegalStateException("Cannot iterate the pages when the page file is not loaded"); } if (nextPage != null) { return; } try { while (nextId < pageFile.getPageCount()) { Page page = load(nextId, null); if (includeFreePages || page.getType() != Page.PAGE_FREE_TYPE) { nextPage = page; return; } else { nextId++; } } } catch (IOException e) { } }
private void findNextPage() { if (!pageFile.isLoaded()) { throw new IllegalStateException("Cannot iterate the pages when the page file is not loaded"); } if (nextPage != null) { return; } try { while (nextId < pageFile.getPageCount()) { Page page = load(nextId, null); if (includeFreePages || page.getType() != Page.PAGE_FREE_TYPE) { nextPage = page; return; } else { nextId++; } } } catch (IOException e) { } }