Class COSPathEvaluator


  • public final class COSPathEvaluator
    extends java.lang.Object
    Resolves a COSPath against a COSDocument (or an arbitrary starting COSBase node), auto-dereferencing indirect references at every step so callers never see a bare COSObject.

    Two evaluation styles are offered: the lenient evaluate(...) methods return COSNull.NULL for any path that can't be followed to the end (a missing key, an out-of-range index, a step applied to the wrong kind of node), which is usually the more convenient behavior for exploratory lookups; the evaluateStrict(...) methods instead throw a COSPathException that names exactly which step failed and why.