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)
DataTypeAdapter
getInt
in interface DataTypeAdapter
buf
- the buffer from which to get the valuepublic long getLong(ByteBuffer buf)
DataTypeAdapter
getLong
in interface DataTypeAdapter
buf
- the buffer from which to get the valuepublic double getDouble(ByteBuffer buf)
DataTypeAdapter
getDouble
in interface DataTypeAdapter
buf
- the buffer from which to get the valueCopyright © 2010–2018 Planetary Data System. All rights reserved.