public class LongTransferType extends TransferType
logger
Constructor and Description |
---|
LongTransferType() |
Modifier and Type | Method and Description |
---|---|
static TransferType |
getByName(java.lang.String ttype,
java.util.Map<java.lang.String,java.lang.Object> properties) |
boolean |
isAscii()
return true if the transfer type uses ASCII-encodings to represent data.
|
java.lang.String |
name()
return a string identifying the TransferType.
|
double |
read(java.nio.ByteBuffer buffer)
read the data from the buffer.
|
int |
sizeBytes()
return the number of bytes used by the transfer type.
|
void |
write(double d,
java.nio.ByteBuffer buffer)
write the data to the buffer.
|
allocate, getForName, toString
public void write(double d, java.nio.ByteBuffer buffer)
TransferType
write
in class TransferType
d
- the value to write.buffer
- the byte buffer positioned to receive sizeByte bytes.public double read(java.nio.ByteBuffer buffer)
TransferType
read
in class TransferType
buffer
- the container for the transfer type.public int sizeBytes()
TransferType
sizeBytes
in class TransferType
public boolean isAscii()
TransferType
isAscii
in class TransferType
public java.lang.String name()
TransferType
name
in class TransferType
public static TransferType getByName(java.lang.String ttype, java.util.Map<java.lang.String,java.lang.Object> properties)