public class StreamReceiver extends Object implements Receiver
| Constructor and Description |
|---|
StreamReceiver(InputStream inputStream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
shutdown()
Cleanly shut down the
Receiver. |
Message |
waitForMessage()
Block until a message is available.
|
public StreamReceiver(InputStream inputStream)
inputStream - The input stream to read from.public final Message waitForMessage() throws CommunicationException
waitForMessage in interface Receivernull if shut down.CommunicationException - If an error occurred receiving a message.Copyright © 2000-2014. All Rights Reserved.