public class MqttInputStream extends InputStream
MqttInputStream lets applications read instances of
MqttWireMessage.| Constructor and Description |
|---|
MqttInputStream(ClientState clientState,
InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
int |
read() |
MqttWireMessage |
readMqttWireMessage()
Reads an
MqttWireMessage from the stream. |
mark, markSupported, read, read, reset, skippublic MqttInputStream(ClientState clientState, InputStream in)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic MqttWireMessage readMqttWireMessage() throws IOException, MqttException
MqttWireMessage from the stream.IOExceptionMqttExceptionCopyright © 2017 Eclipse Paho. All Rights Reserved.