1 50 51 package com.lowagie.text.pdf; 52 53 66 67 public class PdfIndirectReference extends PdfObject { 68 69 71 72 protected int number; 73 74 75 protected int generation = 0; 76 77 79 protected PdfIndirectReference() { 80 super(0); 81 } 82 83 90 91 PdfIndirectReference(int type, int number, int generation) { 92 super(0, new StringBuffer ().append(number).append(" ").append(generation).append(" R").toString()); 93 this.number = number; 94 this.generation = generation; 95 } 96 97 103 104 PdfIndirectReference(int type, int number) { 105 this(type, number, 0); 106 } 107 108 110 115 116 public int getNumber() { 117 return number; 118 } 119 120 125 126 public int getGeneration() { 127 return generation; 128 } 129 130 public String toString() { 131 return new StringBuffer ().append(number).append(" ").append(generation).append(" R").toString(); 132 } 133 } | Popular Tags |