Package com.itextpdf.kernel.pdf 
      
 
      Class PdfIndirectReference
 java.lang.Object 
      
 
      com.itextpdf.kernel.pdf.PdfObject 
       
 
     
         com.itextpdf.kernel.pdf.PdfIndirectReference 
       
 
      - All Implemented Interfaces:
-  Comparable<PdfIndirectReference>
-  
        Field SummaryFieldsModifier and TypeFieldDescriptionprotected intObject generation.protected intIndirect reference number of object stream containing refersTo object.protected final intObject number.protected longOffset in a document of therefersToobject.protected PdfDocumentPdfDocument object belongs to.protected PdfObjectPdfObject that current PdfIndirectReference instance refers to.Fields inherited from class com.itextpdf.kernel.pdf.PdfObjectARRAY, BOOLEAN, DICTIONARY, FLUSHED, FORBID_RELEASE, FREE, INDIRECT_REFERENCE, indirectReference, LITERAL, MODIFIED, MUST_BE_FLUSHED, MUST_BE_INDIRECT, NAME, NULL, NUMBER, ORIGINAL_OBJECT_STREAM, READ_ONLY, READING, STREAM, STRING, UNENCRYPTED
-  
        Constructor SummaryConstructorsModifierConstructorDescriptionprotectedPdfIndirectReference(PdfDocument doc, int objNr) protectedPdfIndirectReference(PdfDocument doc, int objNr, int genNr) protectedPdfIndirectReference(PdfDocument doc, int objNr, int genNr, long offset) 
-  
        Method SummaryModifier and TypeMethodDescriptionintprotected voidcopyContent(PdfObject from, PdfDocument document) Copies object content from object 'from'.protected voidcopyContent(PdfObject from, PdfDocument document, ICopyFilter copyFilter) Copies object content from object 'from'.booleanintintgetIndex()Gets refersTo object index in the object stream.intintlongGets refersTo object offset in a document.protected PdfReaderGets a PdfReader associated with the document object belongs to.getRefersTo(boolean recursively) Gets direct object and try to resolve indirects chain.bytegetType()Gets object type.protected PdfWriterGets a PdfWriter associated with the document object belongs to.inthashCode()booleanisFree()Checks if thisPdfIndirectReferenceinstance corresponds to free indirect reference.protected PdfObjectCreates new instance of object.voidsetFree()Marks indirect reference as free in the document.protected voidsetRefersTo(PdfObject refersTo) protected PdfObjectsetState(short state) Sets special states of current object.toString()Methods inherited from class com.itextpdf.kernel.pdf.PdfObjectcheckState, clearState, clone, clone, copyTo, copyTo, copyTo, copyTo, flush, flush, getIndirectReference, isArray, isBoolean, isDictionary, isFlushed, isIndirect, isIndirectReference, isLiteral, isModified, isName, isNull, isNumber, isReleaseForbidden, isStream, isString, makeIndirect, makeIndirect, release, setIndirectReference, setModified
-  
        Field Details-  
           objNrprotected final int objNrObject number.
-  
           genNrprotected int genNrObject generation.
-  
           refersToPdfObject that current PdfIndirectReference instance refers to.
-  
           objectStreamNumberprotected int objectStreamNumberIndirect reference number of object stream containing refersTo object. If refersTo is not placed into object stream - objectStreamNumber = 0.
-  
           offsetOrIndexprotected long offsetOrIndexOffset in a document of therefersToobject. If the object placed into object stream then it is an object index inside object stream.
-  
           pdfDocumentPdfDocument object belongs to. For direct objects it is null.
 
-  
           
-  
        Constructor Details-  
           PdfIndirectReference
-  
           PdfIndirectReference
-  
           PdfIndirectReference
 
-  
           
-  
        Method Details-  
           getObjNumberpublic int getObjNumber()
-  
           getGenNumberpublic int getGenNumber()
-  
           getRefersTo
-  
           getRefersToGets direct object and try to resolve indirects chain.Note: If chain of references has length of more than 32, this method return 31st reference in chain. - Parameters:
-  recursively-trueto resolve indirects chain
- Returns:
- 
               the PdfObjectresult of indirect reference resolving
 
-  
           setRefersTo
-  
           getObjStreamNumberpublic int getObjStreamNumber()
-  
           getOffsetpublic long getOffset()Gets refersTo object offset in a document.- Returns:
- object offset in a document. If refersTo object is in object stream then -1.
 
-  
           getIndexpublic int getIndex()Gets refersTo object index in the object stream.- Returns:
- object index in a document. If refersTo object is not in object stream then -1.
 
-  
           equals
-  
           hashCodepublic int hashCode()
-  
           compareTo- Specified by:
-  compareToin interfaceComparable<PdfIndirectReference>
 
-  
           getTypepublic byte getType()Description copied from class:PdfObjectGets object type.
-  
           getDocument
-  
           setFreepublic void setFree()Marks indirect reference as free in the document. This doesn't "remove" indirect objects from the document, it only ensures that corresponding xref entry is free and indirect object referred by this reference is no longer linked to it. Actual object still might be written to the resultant document (and would get a new corresponding indirect reference in this case) if it is still contained in some other object.This method will not give any result if the corresponding indirect object or another object that contains a reference to this object is already flushed. Note: in some cases, removing a link of indirect object to it's indirect reference while leaving the actual object in the document structure might lead to errors, because some objects are expected to always have such explicit link (e.g. Catalog object, page objects, etc). 
-  
           isFreepublic boolean isFree()Checks if thisPdfIndirectReferenceinstance corresponds to free indirect reference. Indirect reference might be in a free state either because it was read as such from the opened existing PDF document or because it was set free viasetFree()method.- Returns:
-  trueif thisPdfIndirectReferenceis free,falseotherwise.
 
-  
           toString
-  
           getWriterGets a PdfWriter associated with the document object belongs to.- Returns:
- PdfWriter.
 
-  
           getReaderGets a PdfReader associated with the document object belongs to.- Returns:
- PdfReader.
 
-  
           newInstanceDescription copied from class:PdfObjectCreates new instance of object.- Specified by:
-  newInstancein classPdfObject
- Returns:
- new instance of object.
 
-  
           copyContentDescription copied from class:PdfObjectCopies object content from object 'from'.- Overrides:
-  copyContentin classPdfObject
- Parameters:
-  from- object to copy content from.
-  document- document to copy object to.
-  copyFilter-ICopyFiltera filter that will apply on dictionaries and array UseNullCopyFilterfor no filtering
 
-  
           copyContentDescription copied from class:PdfObjectCopies object content from object 'from'.- Overrides:
-  copyContentin classPdfObject
- Parameters:
-  from- object to copy content from.
-  document- document to copy object to.
 
-  
           setStateSets special states of current object.
 
-