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