Package com.pd4ml.pdf.cos
Class COSNull
- java.lang.Object
-
- com.pd4ml.pdf.cos.COSBase
-
- com.pd4ml.pdf.cos.COSNull
-
- All Implemented Interfaces:
COSObjectable
public final class COSNull extends COSBase
The PDFnullobject. Also used by this API as the well-defined result of a failed/absent lookup (e.g. a dictionary key that isn't present, or a COS path that cannot be resolved), instead of a bare Javanull, so callers can keep chaining without a null check at every step.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(ICOSVisitor<T> visitor)java.lang.StringtoString()-
Methods inherited from class com.pd4ml.pdf.cos.COSBase
getCOSObject, getGenerationNumber, getKey, getObjectNumber, isDirect, resolve, setKey
-
-
-
-
Field Detail
-
NULL
public static final COSNull NULL
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
accept
public <T> T accept(ICOSVisitor<T> visitor) throws COSException
- Specified by:
acceptin classCOSBase- Throws:
COSException
-
-