public class DoubleAdapter extends Object implements DataTypeAdapter
| Constructor and Description |
|---|
DoubleAdapter(boolean isBigEndian)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDouble(ByteBuffer buf)
Gets the value as a double.
|
int |
getInt(ByteBuffer buf)
Gets the value as an int.
|
long |
getLong(ByteBuffer buf)
Gets the value as a long.
|
public DoubleAdapter(boolean isBigEndian)
isBigEndian - true, if element is big-endianpublic int getInt(ByteBuffer buf)
DataTypeAdaptergetInt in interface DataTypeAdapterbuf - the buffer from which to get the valuepublic long getLong(ByteBuffer buf)
DataTypeAdaptergetLong in interface DataTypeAdapterbuf - the buffer from which to get the valuepublic double getDouble(ByteBuffer buf)
DataTypeAdaptergetDouble in interface DataTypeAdapterbuf - the buffer from which to get the valueCopyright © 2010–2017 Planetary Data System. All rights reserved.