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 BooleanReaderINSTANCEstatic intSIZE
-
Constructor Summary
Constructors Constructor Description BooleanReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentType<?>getValueType()static booleanreadBoolean(byte[] bytes, int offset)static booleanreadBoolean(byte[] bytes, Offset offset)java.lang.ObjectreadValue(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 InvalidJfrFileExceptionDescription copied from interface:IValueReaderReads an objects from a byte array starting at a given offset.- Specified by:
readValuein interfaceIValueReaderoffset- 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:
getValueTypein interfaceIValueReader- Returns:
- the content type of the created objects
-
-