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