org.eclipse.paho.client.mqttv3.internal.wire
Class MqttInputStream
java.lang.Object
java.io.InputStream
org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream
- All Implemented Interfaces:
- Closeable
public class MqttInputStream
- extends InputStream
An MqttInputStream
lets applications read instances of
MqttWireMessage
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MqttInputStream
public MqttInputStream(InputStream in)
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
available
public int available()
throws IOException
- Overrides:
available
in class InputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStream
- Throws:
IOException
readMqttWireMessage
public MqttWireMessage readMqttWireMessage()
throws IOException,
MqttException
- Reads an
MqttWireMessage
from the stream.
- Throws:
IOException
MqttException
Copyright © 2013. All Rights Reserved.