|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.client.am.FloatingPoint
public class FloatingPoint
Converters from floating point bytes to Java float, double, or
java.math.BigDecimal.
| Field Summary | |
|---|---|
static int |
IEEE_754_FLOATING_POINT
Supported Unix Big Endian IEEE 754 floating point representation. |
| Constructor Summary | |
|---|---|
private |
FloatingPoint()
|
| Method Summary | |
|---|---|
private static int |
convertFromByteToInt(byte[] buffer,
int offset)
Convert the byte array to an int. |
private static long |
convertFromByteToLong(byte[] buffer,
int offset)
Convert the byte array to a long. |
static double |
getDouble(byte[] buffer,
int offset)
Build a Java double from an 8-byte floating point representation. |
static float |
getFloat(byte[] buffer,
int offset)
Build a Java float from a 4-byte floating point representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int IEEE_754_FLOATING_POINT
| Constructor Detail |
|---|
private FloatingPoint()
| Method Detail |
|---|
private static final int convertFromByteToInt(byte[] buffer,
int offset)
private static final long convertFromByteToLong(byte[] buffer,
int offset)
public static final float getFloat(byte[] buffer,
int offset)
java.lang.IllegalArgumentException - if the specified representation is not recognized.
public static final double getDouble(byte[] buffer,
int offset)
java.lang.IllegalArgumentException - if the specified representation is not recognized.
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||