## org.das2.qstream.QdsToD2sStream

Base class for QDataSet to das2 stream serializers

## QdsToD2sStream( )

Initialize a binary QDataSet to das2 stream exporter

## QdsToD2sStream( int genSigDigits, int fracSecDigits )

Initialize a text QDataSet to das2 stream exporter

## FORMAT_2_2

## FORMAT_2_3_BASIC

## FORMAT_2_4_GENERAL

## formats

## DEFAUT_FRAC_SEC

## DEFAUT_SIG_DIGIT

## FIXED_PKT_TAGS

## VAR_PKT_TAGS

## canWrite

canWrite( QDataSet qds ) → boolean

Determine if the given dataset can be written

### Parameters

qds - a QDataSet

### Returns:

a boolean
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getQdsAxis

getQdsAxis( QDataSet qds ) → String

Determine the name of the das2 axis on which values from a dataset would typically be plotted. This is a duck-typing check. Which looks at the number of dependencies and planes in a dataset. If the dataset has a PLANE_0 property, the axis of the PLANE_0 values is returned instead of the axis of the primary dataset.

### Parameters

qds - a QDataSet

### Returns:

one of "x", "y", "z","w" or null if we can't figure it out.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## write

write( QDataSet qds, java.io.OutputStream os ) → boolean

Write the given dataset

### Parameters

qds - a QDataSet
os - an OutputStream

### Returns:

a boolean
[search for examples] [view on GitHub] [view on old javadoc] [view source]