- All Implemented Interfaces:
- Transport, java.lang.Runnable
- Direct Known Subclasses:
- StreamTransportCharSpaced, TestableTransport
public class StreamTransport
extends java.lang.Object
implements Transport, java.lang.Runnable
First, instatiate with the streams. Then add a data consumer, or create a message control and pass this as the
transport (which will make the message control the data consumer). Change the read delay if desired. This class
supports running in its own thread (start) or an external one (run), say from a thread pool. Both approaches are
delegated to the stream listener. In either case, stop the transport with the stop method (or just stop the message
control).
- Author:
- Matthew Lohbihler