KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > it > stefanochizzolini > clown > tokens > XRefEntry


1 /*
2   Copyright © 2006 Stefano Chizzolini. http://clown.stefanochizzolini.it
3
4   Contributors:
5     * Stefano Chizzolini (original code developer, info@stefanochizzolini.it):
6       contributed code is Copyright © 2006 by Stefano Chizzolini.
7
8   This file should be part of the source code distribution of "PDF Clown library"
9   (the Program): see the accompanying README files for more info.
10
11   This Program is free software; you can redistribute it and/or modify it under
12   the terms of the GNU General Public License as published by the Free Software
13   Foundation; either version 2 of the License, or (at your option) any later version.
14
15   This Program is distributed in the hope that it will be useful, but WITHOUT ANY
16   WARRANTY, either expressed or implied; without even the implied warranty of
17   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License for more details.
18
19   You should have received a copy of the GNU General Public License along with this
20   Program (see README files); if not, go to the GNU website (http://www.gnu.org/).
21
22   Redistribution and use, with or without modification, are permitted provided that such
23   redistributions retain the above copyright notice, license and disclaimer, along with
24   this list of conditions.
25 */

26
27 package it.stefanochizzolini.clown.tokens;
28
29 public class XRefEntry // [PDF:1.6:3.4.3].
30
{
31   // <class>
32
// <dynamic>
33
// <fields>
34
private int number; // Object number.
35
private int generation; // Object generation.
36
private int offset; // Indirect-object offset (in-use entry) | Next free-object object number (free entry).
37
private XRefEntryUsageEnum usage; // Entry usage.
38
// </fields>
39

40   // <constructors>
41
public XRefEntry(
42     int number,
43     int generation,
44     int offset,
45     XRefEntryUsageEnum usage
46     )
47   {
48     this.number = number;
49     this.generation = generation;
50     this.offset = offset;
51     this.usage = usage;
52   }
53   // </constructors>
54

55   // <interface>
56
// <public>
57
public int getGeneration(
58     )
59   {return generation;}
60
61   public int getNumber(
62     )
63   {return number;}
64
65   public int getOffset(
66     )
67   {return offset;}
68
69   public XRefEntryUsageEnum getUsage(
70     )
71   {return usage;}
72   // </public>
73

74   // <internal>
75
void setGeneration(
76     int value
77     )
78   {generation = value;}
79
80   void setNumber(
81     int value
82     )
83   {number = value;}
84
85   void setOffset(
86     int value
87     )
88   {offset = value;}
89
90   void setUsage(
91     XRefEntryUsageEnum value
92     )
93   {usage = value;}
94   // </internal>
95
// </interface>
96
// </dynamic>
97
// </class>
98
}
Popular Tags