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 final COSXRefEntry
     
    char
    Is 'f' is entry is free and 'n' otherwise.
    int
    Is generation number for this entry.
    long
    Is offset of object in the document.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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 Details

    • 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.
  • Method Details