class QuantityReader extends java.lang.Object implements IValueReader
| Modifier and Type | Field and Description |
|---|---|
private DataType |
dataType |
private IUnit |
unit |
| Constructor and Description |
|---|
QuantityReader(DataType dataType,
IUnit unit) |
| Modifier and Type | Method and 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.
|
public java.lang.Object readValue(byte[] bytes,
Offset offset,
long timestamp)
throws InvalidJfrFileException
IValueReaderreadValue in interface IValueReaderoffset - the offset to start read from. Will be moved to the end of the parsed datatimestamp - the timestamp of the object to readInvalidJfrFileExceptionpublic ContentType<?> getValueType()
getValueType in interface IValueReader