org.das2.client
Class StreamDataSetDescriptor

java.lang.Object
  extended by org.das2.dataset.DataSetDescriptor
      extended by org.das2.client.StreamDataSetDescriptor
All Implemented Interfaces:
Displayable

public class StreamDataSetDescriptor
extends DataSetDescriptor


Field Summary
protected  StandardDataStreamSource standardDataStreamSource
           
 
Fields inherited from class org.das2.dataset.DataSetDescriptor
properties
 
Constructor Summary
protected StreamDataSetDescriptor(java.util.Map properties)
          Creates a new instance of StreamDataSetDescriptor from the specified file
protected StreamDataSetDescriptor(java.util.Map properties, boolean legacy)
           
  StreamDataSetDescriptor(StreamDescriptor sd, StandardDataStreamSource sdss)
           
 
Method Summary
protected  DataSet getDataSetFromStream(java.io.InputStream in, Datum start, Datum end, ProgressMonitor monitor)
           
protected  DataSet getDataSetImpl(Datum start, Datum end, Datum resolution, ProgressMonitor monitor)
          getDataSetImpl implements the getDataSet for this DataSetDescriptor implementation.
 PacketDescriptor getDefaultPacketDescriptor()
           
 StandardDataStreamSource getStandardDataStreamSource()
           
 Units getXUnits()
           
 boolean isRestrictedAccess()
           
 boolean isServerSideReduction()
           
protected  byte[] readBytes(java.io.InputStream in)
          Auxiliary method used by readDoubles(InputStream, Object, Datum, Datum); Read data for the given start and end dates and returns an array of bytes
protected  void setProperties(java.util.Map properties)
           
protected  void setProperties(java.util.Map properties, boolean legacy)
           
 void setServerSideReduction(boolean x)
           
 void setStandardDataStreamSource(StandardDataStreamSource sdss)
           
 java.lang.String toString()
           
 
Methods inherited from class org.das2.dataset.DataSetDescriptor
addDataSetUpdateListener, create, fireDataSetUpdateEvent, getDataSet, getDataSetCache, getDataSetID, getListIcon, getListLabel, getProperty, removeDataSetUpdateListener, requestDataSet, requestDataSet, reset, setDefaultCaching
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

standardDataStreamSource

protected StandardDataStreamSource standardDataStreamSource
Constructor Detail

StreamDataSetDescriptor

protected StreamDataSetDescriptor(java.util.Map properties)
Creates a new instance of StreamDataSetDescriptor from the specified file


StreamDataSetDescriptor

protected StreamDataSetDescriptor(java.util.Map properties,
                                  boolean legacy)

StreamDataSetDescriptor

public StreamDataSetDescriptor(StreamDescriptor sd,
                               StandardDataStreamSource sdss)
Method Detail

getXUnits

public Units getXUnits()
Specified by:
getXUnits in class DataSetDescriptor
Returns:
the x units of the DataSetDescriptor that parameterize the data. This is used to identify dataSet requests.

setStandardDataStreamSource

public void setStandardDataStreamSource(StandardDataStreamSource sdss)

getStandardDataStreamSource

public StandardDataStreamSource getStandardDataStreamSource()

setProperties

protected void setProperties(java.util.Map properties,
                             boolean legacy)

setProperties

protected void setProperties(java.util.Map properties)
Overrides:
setProperties in class DataSetDescriptor

readBytes

protected byte[] readBytes(java.io.InputStream in)
                    throws DasException
Auxiliary method used by readDoubles(InputStream, Object, Datum, Datum); Read data for the given start and end dates and returns an array of bytes

Throws:
java.io.IOException - If there is an error getting data from the reader, and IOException is thrown
DasException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDataSetImpl

protected DataSet getDataSetImpl(Datum start,
                                 Datum end,
                                 Datum resolution,
                                 ProgressMonitor monitor)
                          throws DasException
Description copied from class: DataSetDescriptor
getDataSetImpl implements the getDataSet for this DataSetDescriptor implementation. The getDataSet call of the abstract DataSetDescriptor uses this routine to satisfy requests and fill its cache. This caching may be disabled via setDefaultCaching. To satisfy the request, a DataSet should be returned with an x tag range that contains start and end, with a resolution finer than that requested.

Specified by:
getDataSetImpl in class DataSetDescriptor
Parameters:
start - beginning of range for the request.
end - end of the range for the request.
resolution - the resolution requirement for the reqeust. null may be used to request the finest resolution available or intrinic resolution.
Throws:
DasException

getDataSetFromStream

protected DataSet getDataSetFromStream(java.io.InputStream in,
                                       Datum start,
                                       Datum end,
                                       ProgressMonitor monitor)
                                throws DasException
Throws:
DasException

isRestrictedAccess

public boolean isRestrictedAccess()

setServerSideReduction

public void setServerSideReduction(boolean x)

isServerSideReduction

public boolean isServerSideReduction()

getDefaultPacketDescriptor

public PacketDescriptor getDefaultPacketDescriptor()