public class FloatAdapter extends java.lang.Object implements DataTypeAdapter
| Constructor and Description |
|---|
FloatAdapter(boolean isBigEndian)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDouble(java.nio.ByteBuffer buf)
Gets the value as a double.
|
int |
getInt(java.nio.ByteBuffer buf)
Gets the value as an int.
|
long |
getLong(java.nio.ByteBuffer buf)
Gets the value as a long.
|
protected double |
getValue(java.nio.ByteBuffer buf) |
public FloatAdapter(boolean isBigEndian)
isBigEndian - true, if the data is big-endianpublic int getInt(java.nio.ByteBuffer buf)
DataTypeAdaptergetInt in interface DataTypeAdapterbuf - the buffer from which to get the valuepublic long getLong(java.nio.ByteBuffer buf)
DataTypeAdaptergetLong in interface DataTypeAdapterbuf - the buffer from which to get the valuepublic double getDouble(java.nio.ByteBuffer buf)
DataTypeAdaptergetDouble in interface DataTypeAdapterbuf - the buffer from which to get the valueprotected double getValue(java.nio.ByteBuffer buf)
Copyright © 2023 Planetary Data System. All rights reserved.