Class OffsetPathItem

java.lang.Object
com.itextpdf.kernel.utils.objectpathitems.LocalPathItem
com.itextpdf.kernel.utils.objectpathitems.OffsetPathItem

public final class OffsetPathItem extends LocalPathItem
Direct path item (see ObjectPath, which describes transition to the specific position in PdfStream.
  • Constructor Details

    • OffsetPathItem

      public OffsetPathItem (int offset)
      Creates an instance of the OffsetPathItem.
      Parameters:
      offset - bytes offset to the specific position in PdfStream.
  • Method Details

    • getOffset

      public int getOffset()
      The bytes offset of the stream which defines specific position in the PdfStream, to which transition was performed.
      Returns:
      an integer defining bytes offset to the specific position in stream.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals (Object obj)
      Overrides:
      equals in class Object
    • toXmlNode

      protected Node toXmlNode (Document document)
      Description copied from class: LocalPathItem
      Creates an xml node that describes this direct path item.
      Specified by:
      toXmlNode in class LocalPathItem
      Parameters:
      document - xml document, to which this xml node will be added.
      Returns:
      an xml node describing direct path item.