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 (seeObjectPath, which describes transition to the specific position inPdfStream.
-
-
Field Summary
Fields Modifier and Type Field Description private intoffset
-
Constructor Summary
Constructors Constructor Description OffsetPathItem(int offset)Creates an instance of theOffsetPathItem.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)intgetOffset()The bytes offset of the stream which defines specific position in thePdfStream, to which transition was performed.inthashCode()java.lang.StringtoString()protected org.w3c.dom.NodetoXmlNode(org.w3c.dom.Document document)Creates an xml node that describes this direct path item.
-
-
-
Constructor Detail
-
OffsetPathItem
public OffsetPathItem(int offset)
Creates an instance of theOffsetPathItem.- Parameters:
offset- bytes offset to the specific position inPdfStream.
-
-
Method Detail
-
getOffset
public int getOffset()
The bytes offset of the stream which defines specific position in thePdfStream, to which transition was performed.- Returns:
- an integer defining bytes offset to the specific position in stream.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toXmlNode
protected org.w3c.dom.Node toXmlNode(org.w3c.dom.Document document)
Description copied from class:LocalPathItemCreates an xml node that describes this direct path item.- Specified by:
toXmlNodein classLocalPathItem- Parameters:
document- xml document, to which this xml node will be added.- Returns:
- an xml node describing direct path item.
-
-