visad.data.in
Class TimeFactorer
- java.lang.Object
-
- visad.data.in.DataInputFilter
-
- visad.data.in.TimeFactorer
-
- All Implemented Interfaces:
- DataInputStream
public class TimeFactorer extends DataInputFilter
Converts incoming VisAD Fields whose outermost dimension is time and can be factored out into a field-of-fields. Sends the field-of-fields to the downstream data sink. Passes all other VisAD data objects to the downstream data sink unchanged.Instances are immutable.
-
-
Constructor Summary
Constructors Constructor and Description TimeFactorer(DataInputStream source)Constructs from a upstream data source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description DataImplreadData()Returns the next VisAD data object in the input stream.-
Methods inherited from class visad.data.in.DataInputFilter
getSource
-
-
-
-
Constructor Detail
-
TimeFactorer
public TimeFactorer(DataInputStream source) throws VisADException
Constructs from a upstream data source.- Parameters:
source- The upstream data source. May not benull.- Throws:
VisADException- The upstream data source isnull.
-
-
Method Detail
-
readData
public DataImpl readData() throws VisADException, java.rmi.RemoteException
Returns the next VisAD data object in the input stream. If the next object is a field and the field's outermost dimension is time and can be factored out, then the field will be converted into a field-of-fields (with time as the single dimension of the outermost field) before being returned. Returnsnullif there are no more objects.- Returns:
- A VisAD data object or
nullif there are no more such objects. - Throws:
VisADException- VisAD failure.java.rmi.RemoteException- Java RMI failure.
-
-
DMelt 3.0 © DataMelt by jWork.ORG