org.das2.qstream.FormatStreamHandler

Writes the stream based on the messages sent to it. This overlaps with the SimpleStreamFormatter, but was needed to support streams. The SimpleStreamFormatter took a QDataSet and formatted it. This formats based on the callbacks. Note the library was poorly designed, and this is pretty simple because most of the hard work is buried within the StreamDescriptor. StreamDescriptor should be simplified, and the code should be moved to here.


createStreamDescriptor

createStreamDescriptor( String name, boolean asciiTypes, boolean isBigEndian ) → StreamDescriptor

create a stream descriptor packet. TODO: createPacketDescriptor. See SerialStreamFormatter for examples of how this would be done.

Parameters

name -
asciiTypes -
isBigEndian -

Returns:

org.das2.qstream.StreamDescriptor

search for examples view on GitHub view source


setWritableByteChannel

setWritableByteChannel( java.nio.channels.WritableByteChannel outs ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source