Documentation of 'visad.data.in.Selector' Java class
Selector
visad.data.in

Class Selector

  • All Implemented Interfaces:
    DataInputStream


    public class Selector
    extends DataInputFilter
    Provides support for removing unwanted VisAD data objects from a stream of VisAD data objects.

    Instances are modifiable.

    • Constructor Summary

      Constructors 
      Constructor and Description
      Selector(DataInputStream source)
      Constructs from an upstream data source.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      DataImpl readData()
      Returns the next VisAD data object in the input stream that satisfies the selection condition.
      void setCondition(Condition condition)
      Sets the condition for passing VisAD data objects.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setCondition

        public void setCondition(Condition condition)
        Sets the condition for passing VisAD data objects. A VisAD object that satisfies the condition will be passed on to the the downstream data sink. All others will be rejected.
        Parameters:
        condition - The pass/reject condition.
      • readData

        public DataImpl readData()
                          throws VisADException,
                                 java.rmi.RemoteException
        Returns the next VisAD data object in the input stream that satisfies the selection condition. Returns null if there is no such object.
        Returns:
        A VisAD data object or null if there are no more such objects.
        Throws:
        VisADException - VisAD failure.
        java.rmi.RemoteException - Java RMI failure.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.