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.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public MqttWireMessage readMqttWireMessage() throws java.io.IOException, MqttException
MqttWireMessage
from the stream.java.io.IOException
MqttException