Interface IArrayElementParser<T>
-
- All Known Implementing Classes:
ContentTypeParser
,EventTypeParser
,ProducerParser
,UTFStringParser
interface IArrayElementParser<T>
A parser that reads elements of a specific type into an array
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T[]
createArray(int length)
Creates an arrayT
readElement(byte[] data, Offset offset)
Reads an objects from a byte array starting at a given offset.
-
-
-
Method Detail
-
readElement
T readElement(byte[] data, Offset offset) throws InvalidJfrFileException
Reads an objects from a byte array starting at a given offset.- Parameters:
data
- the data to read the element fromoffset
- the offset to start read from. Will be moved to the end of the parsed data- Returns:
- the parsed element
- Throws:
InvalidJfrFileException
-
createArray
T[] createArray(int length)
Creates an array- Parameters:
length
- the length of the array to create- Returns:
-
-