org.das2.qstream.BundleStreamFormatter

Like SimpleStreamFormatter, but this correctly handles bundles. This also shows a brute-force method for formatting streams.

BundleStreamFormatter( )


FORMAT_PATTERN


HEX_FORMAT_PATTERN


format

format( QDataSet ds, java.io.OutputStream osout, boolean asciiTypes ) → void

format the rank 2 bundle.

Parameters

ds - rank 2 bundle dataset.
osout - an OutputStream
asciiTypes - true if ascii types should be used.

Returns:

void (returns nothing)

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


guessAsciiTransferType

guessAsciiTransferType( QDataSet ds ) → org.das2.qstream.TransferType

guess an ASCII transfer type which can accurately and efficiently represent the data in the dataset. If the format property is found, then a TransferType based on the format is used.

Parameters

ds - the dataset

Returns:

the transfer type.

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