Class UncompressedObjectReference

  • All Implemented Interfaces:
    ObjectReference

    class UncompressedObjectReference
    extends java.lang.Object
    implements ObjectReference
    A reference to an indirect object that is not stored in an object stream.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long offset  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void output​(java.io.DataOutputStream out)
      Outputs this reference to the given stream, in the cross-reference stream format.
      • Methods inherited from class java.lang.Object

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

      • offset

        final long offset
    • Constructor Detail

      • UncompressedObjectReference

        UncompressedObjectReference​(long offset)
        Creates a new reference.
        Parameters:
        offset - offset of the object from the beginning of the PDF file
    • Method Detail

      • output

        public void output​(java.io.DataOutputStream out)
                    throws java.io.IOException
        Description copied from interface: ObjectReference
        Outputs this reference to the given stream, in the cross-reference stream format. For example, a object may output the bytes 01 00 00 00 00 00 00 01 ff 00 to indicate a non-compressed object (01), at offset 511 from the beginning of the file (00 00 00 00 00 00 01 ff), of generation number 0 (00).
        Specified by:
        output in interface ObjectReference
        Parameters:
        out - the stream to which to output the reference
        Throws:
        java.io.IOException