- 所有已实现的接口:
- Transport, Runnable
- 直接已知子类:
- StreamTransportCharSpaced, TestableTransport
public class StreamTransport
extends Object
implements Transport, 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).
- 作者:
- Matthew Lohbihler