Class Value.DataValue

    • Constructor Detail

      • DataValue

        public DataValue​(byte[] v)
    • Method Detail

      • valid

        public boolean valid()
        Description copied from interface: Inspector
        Check if the inspector is valid. If you try to access a field or array entry that does not exist, you will get an invalid Inspector returned.
        Specified by:
        valid in interface Inspector
        Overrides:
        valid in class Value
      • type

        public Type type()
        Description copied from interface: Inspector
        Get the type of an inspector
        Specified by:
        type in interface Inspector
        Overrides:
        type in class Value
      • asData

        public byte[] asData()
        Description copied from interface: Inspector
        Access the inspector's value if it's DATA; otherwise throws exception
        Specified by:
        asData in interface Inspector
        Overrides:
        asData in class Value
      • asData

        public byte[] asData​(byte[] x)
        Description copied from interface: Inspector
        Get the inspector's value (or the supplied default), never throws
        Specified by:
        asData in interface Inspector
        Overrides:
        asData in class Value