1 24 package gnu.jpdf; 25 26 41 public class PDFXref 42 { 43 44 48 49 52 public int id; 53 54 57 public int offset; 58 59 62 public int generation; 63 64 69 public PDFXref(int id,int offset) 70 { 71 this(id,offset,0); 72 } 73 74 81 public PDFXref(int id,int offset,int generation) 82 { 83 this.id = id; 84 this.offset = offset; 85 this.generation = generation; 86 } 87 88 91 public String toString() 92 { 93 String of = Integer.toString(offset); 94 String ge = Integer.toString(generation); 95 String rs = "0000000000".substring(0, 10-of.length()) + 96 of + 97 " " + 98 "00000".substring(0,5-ge.length())+ge; 99 if(generation==65535) 100 return rs+" f "; 101 return rs+" n "; 102 } 103 104 } 106 | Popular Tags |