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