Class PdfWriter.PdfBody.PdfCrossReference

  • All Implemented Interfaces:
    java.lang.Comparable
    Enclosing class:
    PdfWriter.PdfBody

    private static class PdfWriter.PdfBody.PdfCrossReference
    extends java.lang.Object
    implements java.lang.Comparable
    PdfCrossReference is an entry in the PDF Cross-Reference table.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int generation
      generation of the object.
      private int offset
      Byte offset in the PDF file.
      private int refnum  
      private int type  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private PdfCrossReference​(int refnum, int offset)
      Constructs a cross-reference element for a PdfIndirectObject.
      private PdfCrossReference​(int refnum, int offset, int generation)
      Constructs a cross-reference element for a PdfIndirectObject.
      private PdfCrossReference​(int type, int refnum, int offset, int generation)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.Object o)  
      boolean equals​(java.lang.Object obj)  
      private int getRefnum()  
      int hashCode()  
      private void toPdf​(int midSize, java.io.OutputStream os)
      Writes PDF syntax to the OutputStream
      private void toPdf​(java.io.OutputStream os)
      Returns the PDF representation of this PdfObject.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • type

        private final int type
      • offset

        private final int offset
        Byte offset in the PDF file.
      • refnum

        private final int refnum
      • generation

        private final int generation
        generation of the object.
    • Constructor Detail

      • PdfCrossReference

        private PdfCrossReference​(int refnum,
                                  int offset,
                                  int generation)
        Constructs a cross-reference element for a PdfIndirectObject.
        Parameters:
        refnum -
        offset - byte offset of the object
        generation - generation number of the object
      • PdfCrossReference

        private PdfCrossReference​(int refnum,
                                  int offset)
        Constructs a cross-reference element for a PdfIndirectObject.
        Parameters:
        refnum -
        offset - byte offset of the object
      • PdfCrossReference

        private PdfCrossReference​(int type,
                                  int refnum,
                                  int offset,
                                  int generation)
    • Method Detail

      • getRefnum

        private int getRefnum()
      • toPdf

        private void toPdf​(java.io.OutputStream os)
                    throws java.io.IOException
        Returns the PDF representation of this PdfObject.
        Parameters:
        os -
        Throws:
        java.io.IOException
      • toPdf

        private void toPdf​(int midSize,
                           java.io.OutputStream os)
                    throws java.io.IOException
        Writes PDF syntax to the OutputStream
        Parameters:
        midSize -
        os -
        Throws:
        java.io.IOException
      • compareTo

        public int compareTo​(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable
        See Also:
        Comparable.compareTo(java.lang.Object)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()