org.das2.qstream.SimpleStreamFormatter
Class for formatting QDataSets as QStreams. Although this is "SimpleStreamFormatter," this is the only formatter written
thus far, except for SerialStreamFormatter, which formats packet-by-packet.
SimpleStreamFormatter( )
format
format( QDataSet ds, java.io.OutputStream osout, boolean asciiTypes ) → void
serialize the dataset to the output stream. Presently most datasets can
be serialized:
- rank 0
- rank 1
- rank 2 qubes
- array of rank 2 qubes
- rank 3 qubes
- bundle datasets.
The design goal is that all datasets can be serialized using this formatter,
however some schemas (e.g. high-rank non-qubes) will be inefficient.
Parameters
ds - the dataset to serialize.
osout - the output stream, which will not be closed here.
asciiTypes - use ascii format types so that the stream is completely ascii.
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
main
main( java.lang.String[] args ) → void
Parameters
args - a java.lang.String[]
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]