final class EventTypeParser extends java.lang.Object implements IArrayElementParser<EventTypeDescriptor>
EventTypeDescriptor| Modifier and Type | Field and Description |
|---|---|
private DataStructure[] |
dataStructures |
| Constructor and Description |
|---|
EventTypeParser(DataStructure[] dataStructures) |
| Modifier and Type | Method and Description |
|---|---|
EventTypeDescriptor[] |
createArray(int length)
Creates an array
|
EventTypeDescriptor |
readElement(byte[] data,
Offset offset)
Reads an objects from a byte array starting at a given offset.
|
private final DataStructure[] dataStructures
public EventTypeParser(DataStructure[] dataStructures)
public EventTypeDescriptor readElement(byte[] data, Offset offset) throws InvalidJfrFileException
IArrayElementParserreadElement in interface IArrayElementParser<EventTypeDescriptor>data - the data to read the element fromoffset - the offset to start read from. Will be moved to the end of the parsed dataInvalidJfrFileExceptionpublic EventTypeDescriptor[] createArray(int length)
IArrayElementParsercreateArray in interface IArrayElementParser<EventTypeDescriptor>length - the length of the array to create