Class BooleanReader
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.parser.v0.BooleanReader
-
- All Implemented Interfaces:
IValueReader
final class BooleanReader extends java.lang.Object implements IValueReader
Reads a boolean value from a byte array.
-
-
Field Summary
Fields Modifier and Type Field Description static BooleanReader
INSTANCE
static int
SIZE
-
Constructor Summary
Constructors Constructor Description BooleanReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentType<?>
getValueType()
static boolean
readBoolean(byte[] bytes, int offset)
static boolean
readBoolean(byte[] bytes, Offset offset)
java.lang.Object
readValue(byte[] bytes, Offset offset, long timestamp)
Reads an objects from a byte array starting at a given offset.
-
-
-
Field Detail
-
SIZE
public static final int SIZE
- See Also:
- Constant Field Values
-
INSTANCE
public static final BooleanReader INSTANCE
-
-
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
-
readBoolean
public static boolean readBoolean(byte[] bytes, Offset offset) throws InvalidJfrFileException
- Throws:
InvalidJfrFileException
-
readBoolean
public static boolean readBoolean(byte[] bytes, int offset)
-
getValueType
public ContentType<?> getValueType()
- Specified by:
getValueType
in interfaceIValueReader
- Returns:
- the content type of the created objects
-
-