Package com.pd4ml.pdf.cos.path
Class COSPathSegment
- java.lang.Object
-
- com.pd4ml.pdf.cos.path.COSPathSegment
-
public final class COSPathSegment extends java.lang.ObjectOne navigation step of aCOSPath: descend into a dictionary by key, into an array by index, or jump directly to an arbitrary indirect object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCOSPathSegment.KindThe three kinds of step a COS path can take.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)intgetIndex()COSPathSegment.KindgetKind()java.lang.StringgetName()COSObjectKeygetRef()inthashCode()static COSPathSegmentindex(int index)static COSPathSegmentname(java.lang.String name)static COSPathSegmentobjectRef(COSObjectKey ref)java.lang.StringtoString()
-
-
-
Method Detail
-
name
public static COSPathSegment name(java.lang.String name)
-
index
public static COSPathSegment index(int index)
-
objectRef
public static COSPathSegment objectRef(COSObjectKey ref)
-
getKind
public COSPathSegment.Kind getKind()
-
getName
public java.lang.String getName()
-
getIndex
public int getIndex()
-
getRef
public COSObjectKey getRef()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-