org.das2.qstream.TransferType

A transfer type is an encoding of a double on to the stream. It must have a fixed length in bytes. Some are pure ASCII, and isAscii can be used to check this.


allocate

allocate( int recordLengthBytes, java.nio.ByteOrder byteOrder ) → ByteBuffer

convenient method which gently reminds that the ByteOrder needs to be specified with ByteBuffers. ByteBuffers are created with big endian turned on, but more often little endian is used.

Parameters

recordLengthBytes -
byteOrder -

Returns:

the byte buffer with the order set.

search for examples view on GitHub view source


getForName

getForName( String ttype, java.util.Map properties ) → TransferType

returns a TranferType for the given name, or null if none is found.

Parameters

ttype -
properties - map of dataset properties. Introduced to pass in time Unit to AsciiTimeTransferType without unduly coupling codes.

Returns:

returns a TranferType for the given name, or null if none is found.

search for examples view on GitHub view source