Class ReaderFactory.TypeIdentifierReader
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.parser.v0.ReaderFactory.TypeIdentifierReader
-
- All Implemented Interfaces:
IValueReader
- Enclosing class:
- ReaderFactory
private class ReaderFactory.TypeIdentifierReader extends java.lang.Object implements IValueReader
-
-
Constructor Summary
Constructors Constructor Description TypeIdentifierReader(DataType dataType)
-
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.
-
-
-
Field Detail
-
dataType
private final DataType dataType
-
-
Constructor Detail
-
TypeIdentifierReader
TypeIdentifierReader(DataType dataType)
-
-
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 interfaceIValueReader
offset
- the offset to start read from. Will be moved to the end of the parsed datatimestamp
- the timestamp of the object to read- Returns:
- the parsed object
- Throws:
InvalidJfrFileException
-
getValueType
public ContentType<?> getValueType()
- Specified by:
getValueType
in interfaceIValueReader
- Returns:
- the content type of the created objects
-
-