|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.das2.dataset.DataSetStreamProducer
public class 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.
| Constructor Summary | |
|---|---|
DataSetStreamProducer()
Creates a new instance of DataSetStreamProducer |
|
| Method Summary | |
|---|---|
DataSet |
getDataSet()
Getter for property dataSet. |
boolean |
isAsciiTransferTypes()
Getter for property asciiTransferTypes. |
boolean |
isCompressed()
Getter for property compressed. |
void |
setAsciiTransferTypes(boolean asciiTransferTypes)
If true, use ascii-type transfer types when creating the stream, so the stream is more easily read by humans and stream-naive parsers. |
void |
setCompressed(boolean compressed)
If true, create a compressed stream. |
void |
setDataSet(DataSet dataSet)
Setter for property dataSet. |
void |
writeStream(java.io.OutputStream out)
convenient method for writing to an OutputStream. |
void |
writeStream(java.nio.channels.WritableByteChannel out)
writes the stream to the Channel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSetStreamProducer()
| Method Detail |
|---|
public void writeStream(java.io.OutputStream out)
public void writeStream(java.nio.channels.WritableByteChannel out)
public boolean isAsciiTransferTypes()
public void setAsciiTransferTypes(boolean asciiTransferTypes)
asciiTransferTypes - New value of property asciiTransferTypes.public boolean isCompressed()
public void setCompressed(boolean compressed)
compressed - New value of property compressed.public DataSet getDataSet()
public void setDataSet(DataSet dataSet)
dataSet - New value of property dataSet.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||