Package org.verapdf.cos.xref
Class COSXRefEntry
- java.lang.Object
-
- org.verapdf.cos.xref.COSXRefEntry
-
public class COSXRefEntry extends Object
Class represents entry in xref. Entry has offset, generation and character showing if it is a free entry.- Author:
- Timur Kamalov
-
-
Field Summary
Fields Modifier and Type Field Description static COSXRefEntryFIRST_XREF_ENTRYcharfreeIs 'f' is entry is free and 'n' otherwise.intgenerationIs generation number for this entry.longoffsetIs offset of object in the document.
-
Constructor Summary
Constructors Constructor Description COSXRefEntry()Default constructor that initializes offset and generation with zeroes, entry is marked as in-use.COSXRefEntry(long offset, int generation)Constructor from offset and generation.COSXRefEntry(long offset, int generation, char free)Constructor setting offset, generation and free value.
-
-
-
Field Detail
-
FIRST_XREF_ENTRY
public static final COSXRefEntry FIRST_XREF_ENTRY
-
offset
public long offset
Is offset of object in the document.
-
generation
public int generation
Is generation number for this entry.
-
free
public char free
Is 'f' is entry is free and 'n' otherwise.
-
-
Constructor Detail
-
COSXRefEntry
public COSXRefEntry()
Default constructor that initializes offset and generation with zeroes, entry is marked as in-use.
-
COSXRefEntry
public COSXRefEntry(long offset, int generation)Constructor from offset and generation. Entry is marked as in-use.- Parameters:
offset- is offset of object represented by this entry.generation- is generation of object represented by this entry.
-
COSXRefEntry
public COSXRefEntry(long offset, int generation, char free)Constructor setting offset, generation and free value.- Parameters:
offset- is offset of object represented by this entry.generation- is generation of object represented by this entry.free- is 'f' is entry is free and 'n' otherwise.
-
-