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, toStringpublic void write(double d,
java.nio.ByteBuffer buffer)
TransferTypewrite in class TransferTyped - the value to write.buffer - the byte buffer positioned to receive sizeByte bytes.public double read(java.nio.ByteBuffer buffer)
TransferTyperead in class TransferTypebuffer - the container for the transfer type.public int sizeBytes()
TransferTypesizeBytes in class TransferTypepublic boolean isAscii()
TransferTypeisAscii in class TransferTypepublic java.lang.String name()
TransferTypename in class TransferTypepublic static TransferType getByName(java.lang.String ttype, java.util.Map<java.lang.String,java.lang.Object> properties)