paho.mqtt.java icon indicating copy to clipboard operation
paho.mqtt.java copied to clipboard

Discussion: Could MqttWireMessage.createWireMessage(InputStream) be public ?

Open juancarrey opened this issue 1 year ago • 0 comments

This is not a bug issue

Apologies in advance if this is not the way to open a discussion.

The question is simple, could the method be exposed public: https://github.com/eclipse/paho.mqtt.java/blob/master/org.eclipse.paho.mqttv5.client/src/main/java/org/eclipse/paho/mqttv5/common/packet/MqttWireMessage.java#L201

or is there a specific need for it to be a ByteArrayInputStream ?

This would prevent needing to read the stream into a byte[] in order to read it again to parse the message, so it could be directly read from the original stream instead.

What do you think ? Thank you

juancarrey avatar Mar 29 '23 11:03 juancarrey