public interface MessageReader
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the underlying stream.
|
Message |
read()
Read a message from the backing InputStream.
|
Message read() throws java.io.IOException
java.io.IOException
- If there is an exception when reading the message.void close() throws java.io.IOException
java.io.IOException
- If there is an exception when closing the underlying stream.