public class MqttInputStream
extends java.io.InputStream
MqttInputStream lets applications read instances of
MqttWireMessage.| Constructor and Description |
|---|
MqttInputStream(ClientState clientState,
java.io.InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
int |
read() |
MqttWireMessage |
readMqttWireMessage()
Reads an
MqttWireMessage from the stream. |
public MqttInputStream(ClientState clientState, java.io.InputStream in)
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic MqttWireMessage readMqttWireMessage() throws java.io.IOException, MqttException
MqttWireMessage from the stream.java.io.IOExceptionMqttException