public class DataTransferType
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static DataTransferType |
LITTLE_ENDIAN_REAL4 |
static DataTransferType |
LITTLE_ENDIAN_REAL8 |
static DataTransferType |
SUN_REAL4 |
static DataTransferType |
SUN_REAL8 |
| Modifier and Type | Method and Description |
|---|---|
static DataTransferType |
getByName(java.lang.String name)
returns the type or throws RuntimeException("Unsupported type")
|
int |
getSizeBytes()
return the size of the item in bytes.
|
boolean |
isAscii()
If type terminates a line, then use \n to delineate
|
double |
read(java.nio.ByteBuffer buffer)
read the next value from the buffer and return the double representation.
|
java.lang.String |
toString() |
void |
write(double d,
java.nio.ByteBuffer buffer)
write the next value, represented as a double and interpreted with Units,
to the buffer.
|
public static final DataTransferType SUN_REAL4
public static final DataTransferType SUN_REAL8
public static final DataTransferType LITTLE_ENDIAN_REAL4
public static final DataTransferType LITTLE_ENDIAN_REAL8
public java.lang.String toString()
toString in class java.lang.Objectpublic int getSizeBytes()
public static DataTransferType getByName(java.lang.String name)
name - public boolean isAscii()
public double read(java.nio.ByteBuffer buffer)
buffer - the buffer positioned at the next item.public void write(double d,
java.nio.ByteBuffer buffer)
d - the double representing.buffer - the buffer positioned at the next item.