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.StringBOOLEANprivate static java.lang.StringBYTEprivate static java.lang.StringCHARprivate ContentType<?>contentTypeprivate static java.lang.StringDOUBLEprivate static java.lang.StringFLOATprivate static java.lang.StringINTprivate static java.lang.StringLONGprivate static java.lang.StringSHORTprivate java.lang.StringtypeIdentifier
-
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 booleanisDouble(java.lang.String typeIdentifier)(package private) static booleanisFloat(java.lang.String typeIdentifier)(package private) static booleanisNumeric(java.lang.String typeIdentifier)java.lang.Objectread(IDataInput in, boolean allowUnresolvedReference)(package private) static doublereadDouble(IDataInput in, boolean fromFloat)(package private) static longreadLong(IDataInput in, java.lang.String typeIdentifier, boolean unsigned)java.lang.Objectresolve(java.lang.Object value)voidskip(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:
readin interfaceValueReaders.IValueReader- Throws:
java.io.IOExceptionInvalidJfrFileException
-
skip
public void skip(IDataInput in) throws java.io.IOException, InvalidJfrFileException
- Specified by:
skipin interfaceValueReaders.IValueReader- Throws:
java.io.IOExceptionInvalidJfrFileException
-
getContentType
public ContentType<?> getContentType()
- Specified by:
getContentTypein interfaceValueReaders.IValueReader
-
resolve
public java.lang.Object resolve(java.lang.Object value) throws InvalidJfrFileException- Specified by:
resolvein 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.IOExceptionInvalidJfrFileException
-
readDouble
static double readDouble(IDataInput in, boolean fromFloat) throws java.io.IOException
- Throws:
java.io.IOException
-
-