package mining; /** * interface for all streaming classes. * * @author Maurice Laveaux */ public interface Stream { /** * Open the connection to the server. */ public void open(); /** * Set a single listener for this stream. * * @param listener The object that is listening. */ public void setListener(StreamListener listener); /** * Test whether the stream is ready for streaming * * @return true if connection can be made, false otherwise. */ public boolean isValid(); }