Class ValueReaders.PrimitiveReader
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.parser.v1.ValueReaders.PrimitiveReader
-
- All Implemented Interfaces:
ValueReaders.IValueReader
- Enclosing class:
- ValueReaders
static class ValueReaders.PrimitiveReader extends java.lang.Object implements ValueReaders.IValueReader
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
BOOLEAN
private static java.lang.String
BYTE
private static java.lang.String
CHAR
private ContentType<?>
contentType
private static java.lang.String
DOUBLE
private static java.lang.String
FLOAT
private static java.lang.String
INT
private static java.lang.String
LONG
private static java.lang.String
SHORT
private java.lang.String
typeIdentifier
-
Constructor Summary
Constructors Constructor Description PrimitiveReader(java.lang.String typeIdentifier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentType<?>
getContentType()
(package private) static boolean
isDouble(java.lang.String typeIdentifier)
(package private) static boolean
isFloat(java.lang.String typeIdentifier)
(package private) static boolean
isNumeric(java.lang.String typeIdentifier)
java.lang.Object
read(IDataInput in, boolean allowUnresolvedReference)
(package private) static double
readDouble(IDataInput in, boolean fromFloat)
(package private) static long
readLong(IDataInput in, java.lang.String typeIdentifier, boolean unsigned)
java.lang.Object
resolve(java.lang.Object value)
void
skip(IDataInput in)
-
-
-
Field Detail
-
DOUBLE
private static final java.lang.String DOUBLE
- See Also:
- Constant Field Values
-
FLOAT
private static final java.lang.String FLOAT
- See Also:
- Constant Field Values
-
LONG
private static final java.lang.String LONG
- See Also:
- Constant Field Values
-
INT
private static final java.lang.String INT
- See Also:
- Constant Field Values
-
CHAR
private static final java.lang.String CHAR
- See Also:
- Constant Field Values
-
SHORT
private static final java.lang.String SHORT
- See Also:
- Constant Field Values
-
BYTE
private static final java.lang.String BYTE
- See Also:
- Constant Field Values
-
BOOLEAN
private static final java.lang.String BOOLEAN
- See Also:
- Constant Field Values
-
typeIdentifier
private final java.lang.String typeIdentifier
-
contentType
private final ContentType<?> contentType
-
-
Constructor Detail
-
PrimitiveReader
PrimitiveReader(java.lang.String typeIdentifier) throws InvalidJfrFileException
- Throws:
InvalidJfrFileException
-
-
Method Detail
-
read
public java.lang.Object read(IDataInput in, boolean allowUnresolvedReference) throws java.io.IOException, InvalidJfrFileException
- Specified by:
read
in interfaceValueReaders.IValueReader
- Throws:
java.io.IOException
InvalidJfrFileException
-
skip
public void skip(IDataInput in) throws java.io.IOException, InvalidJfrFileException
- Specified by:
skip
in interfaceValueReaders.IValueReader
- Throws:
java.io.IOException
InvalidJfrFileException
-
getContentType
public ContentType<?> getContentType()
- Specified by:
getContentType
in interfaceValueReaders.IValueReader
-
resolve
public java.lang.Object resolve(java.lang.Object value) throws InvalidJfrFileException
- Specified by:
resolve
in interfaceValueReaders.IValueReader
- Throws:
InvalidJfrFileException
-
isFloat
static boolean isFloat(java.lang.String typeIdentifier)
-
isDouble
static boolean isDouble(java.lang.String typeIdentifier)
-
isNumeric
static boolean isNumeric(java.lang.String typeIdentifier)
-
readLong
static long readLong(IDataInput in, java.lang.String typeIdentifier, boolean unsigned) throws java.io.IOException, InvalidJfrFileException
- Throws:
java.io.IOException
InvalidJfrFileException
-
readDouble
static double readDouble(IDataInput in, boolean fromFloat) throws java.io.IOException
- Throws:
java.io.IOException
-
-