Example usage for com.lowagie.text.pdf IntHashtable IntHashtable

List of usage examples for com.lowagie.text.pdf IntHashtable IntHashtable

Introduction

In this page you can find the example usage for com.lowagie.text.pdf IntHashtable IntHashtable.

Prototype

public IntHashtable() 

Source Link

Document

Constructs a new, empty hashtable with a default capacity and load factor, which is 20 and 0.75 respectively.

Usage

From source file:it.flavianopetrocchi.jpdfbookmarks.itextbookmarksconverter.iTextBookmarksConverter.java

License:Open Source License

private void initPages() {
    pages = new IntHashtable();
    int numPages = reader.getNumberOfPages();
    for (int k = 1; k <= numPages; ++k) {
        pages.put(reader.getPageOrigRef(k).getNumber(), k);
        reader.releasePage(k);/*from  ww  w .  j ava 2 s. c  o  m*/
    }
}