org.das2.stream.DataTransferType
SUN_REAL4
SUN_REAL8
LITTLE_ENDIAN_REAL4
LITTLE_ENDIAN_REAL8
getByName
getByName( String name ) → org.das2.stream.DataTransferType
returns the type or throws RuntimeException("Unsupported type")
Parameters
name - a String
Returns:
an org.das2.stream.DataTransferType
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getSizeBytes
getSizeBytes( ) → int
return the size of the item in bytes.
Returns:
the size of the item in bytes.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
isAscii
isAscii( ) → boolean
If type terminates a line, then use \n to delineate
Returns:
true if ascii
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
read
read( java.nio.ByteBuffer buffer ) → double
read the next value from the buffer and return the double representation.
Parameters
buffer - the buffer positioned at the next item.
Returns:
the double representing.
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
toString
toString( ) → String
Returns:
java.lang.String
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
write
write( double d, java.nio.ByteBuffer buffer ) → void
write the next value, represented as a double and interpreted with Units,
to the buffer.
Parameters
d - the double representing.
buffer - the buffer positioned at the next item.
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]