Ejemplo n.º 1
0
 /**
  * Gets the reference number in the xref table based on the index in the indirect object list.
  *
  * @param i the index of an object in the indirect object list
  * @return the corresponding reference number in the xref table
  */
 public int getRefByIndex(int i) {
   return idxToRef.get(i);
 }
Ejemplo n.º 2
0
 /**
  * Gets the index of an object based on its number in the xref table.
  *
  * @param ref a number in the xref table
  * @return the index in the list of indirect objects
  */
 public int getIndexByRef(int ref) {
   return refToIdx.get(ref);
 }