Top Description Constructors Methods
ch.randelshofer.fastdoubleparser

pack-priv final Class JsonDoubleBitsFromByteArray

extends AbstractJsonFloatingPointBitsFromByteArray
Class Inheritance
Imports
java.nio.charset.StandardCharsets

Parses a double from a byte array.

Constructor Summary

AccessConstructor and Description
public
JsonDoubleBitsFromByteArray()

Creates a new instance.

Method Summary

Modifier and TypeMethod and Description
pack-priv long
valueOfFloatLiteral(byte[]
the string that contains the float literal (and maybe more)
str
,
int
the start index (inclusive) of the float literal inside the string
startIndex
,
int
the end index (exclusive) of the float literal inside the string
endIndex
,
boolean
whether the float value is negative
isNegative
,
long
the significand of the float value (can be truncated)
significand
,
int
the exponent of the float value
exponent
,
boolean
whether the significand is truncated
isSignificandTruncated
,
int
the exponent value of the truncated significand
exponentOfTruncatedSignificand
)

Implements abstract ch.randelshofer.fastdoubleparser.AbstractJsonFloatingPointBitsFromByteArray.valueOfFloatLiteral.

Computes a float value from the given components of a decimal float literal.
Inherited from ch.randelshofer.fastdoubleparser.AbstractJsonFloatingPointBitsFromByteArray:
parseNumber

Constructor Detail

JsonDoubleBitsFromByteArrayback to summary
public JsonDoubleBitsFromByteArray()

Creates a new instance.

Method Detail

valueOfFloatLiteralback to summary
pack-priv long valueOfFloatLiteral(byte[] str, int startIndex, int endIndex, boolean isNegative, long significand, int exponent, boolean isSignificandTruncated, int exponentOfTruncatedSignificand)

Implements abstract ch.randelshofer.fastdoubleparser.AbstractJsonFloatingPointBitsFromByteArray.valueOfFloatLiteral.

Doc from ch.randelshofer.fastdoubleparser.AbstractJsonFloatingPointBitsFromByteArray.valueOfFloatLiteral.

Computes a float value from the given components of a decimal float literal.

Parameters
str:byte[]

the string that contains the float literal (and maybe more)

startIndex:int

the start index (inclusive) of the float literal inside the string

endIndex:int

the end index (exclusive) of the float literal inside the string

isNegative:boolean

whether the float value is negative

significand:long

the significand of the float value (can be truncated)

exponent:int

the exponent of the float value

isSignificandTruncated:boolean

whether the significand is truncated

exponentOfTruncatedSignificand:int

the exponent value of the truncated significand

Returns:long

the bit pattern of the parsed value, if the input is legal; otherwise, -1L.

Annotations
@Override