Class Inspector

java.lang.Object
io.bytestreams.codec.core.Inspector

public final class Inspector extends Object
Produces structured representations of decoded values by walking the codec tree.

Codecs that implement Inspectable provide their own inspection logic. For all other codecs (typically primitives), the value is returned as-is.

  • Method Details

    • inspect

      public static Object inspect(Codec<?> codec, Object value)
      Returns a structured representation of the given value by walking the codec tree.
      Parameters:
      codec - the codec that produced the value
      value - the decoded value to inspect
      Returns:
      a structured representation (Map, List, or scalar)