org.das2.dataset.DataSetStreamProducer

Configurable class for serializing a DataSet into a das2Stream. This class handles both VectorDataSets and TableDataSets, and uses java beans properties to control how the stream is produced. This code subsumes the functionality of TableUtil.dumpToDas2Stream and VectorUtil.dumpToDas2Stream.

DataSetStreamProducer( )

Creates a new instance of DataSetStreamProducer


getDataSet

getDataSet( ) → DataSet

Getter for property dataSet.

Returns:

Value of property dataSet.

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


isAsciiTransferTypes

isAsciiTransferTypes( ) → boolean

Getter for property asciiTransferTypes.

Returns:

Value of property asciiTransferTypes.

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


isCompressed

isCompressed( ) → boolean

Getter for property compressed.

Returns:

Value of property compressed.

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


setAsciiTransferTypes

setAsciiTransferTypes( boolean asciiTransferTypes ) → void

If true, use ascii-type transfer types when creating the stream, so the stream is more easily read by humans and stream-naive parsers.

Parameters

asciiTransferTypes - New value of property asciiTransferTypes.

Returns:

void (returns nothing)

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


setCompressed

setCompressed( boolean compressed ) → void

If true, create a compressed stream.

Parameters

compressed - New value of property compressed.

Returns:

void (returns nothing)

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


setDataSet

setDataSet( org.das2.dataset.DataSet dataSet ) → void

Setter for property dataSet.

Parameters

dataSet - New value of property dataSet.

Returns:

void (returns nothing)

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


writeStream

writeStream( java.io.OutputStream out ) → void

convenient method for writing to an OutputStream. Simply uses Channels.newChannel to create a WritableByteChannel.

Parameters

out - an OutputStream

Returns:

void (returns nothing)

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

writeStream( java.nio.channels.WritableByteChannel out ) → void