Class QuantityReader

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ContentType<?> getValueType()  
      java.lang.Object readValue​(byte[] bytes, Offset offset, long timestamp)
      Reads an objects from a byte array starting at a given offset.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • unit

        private final IUnit unit
      • dataType

        private final DataType dataType
    • Constructor Detail

      • QuantityReader

        QuantityReader​(DataType dataType,
                       IUnit unit)
    • Method Detail

      • readValue

        public java.lang.Object readValue​(byte[] bytes,
                                          Offset offset,
                                          long timestamp)
                                   throws InvalidJfrFileException
        Description copied from interface: IValueReader
        Reads an objects from a byte array starting at a given offset.
        Specified by:
        readValue in interface IValueReader
        offset - the offset to start read from. Will be moved to the end of the parsed data
        timestamp - the timestamp of the object to read
        Returns:
        the parsed object
        Throws:
        InvalidJfrFileException