public MqttPubRel(byte info,byte[] data) throws IOException {
  super(MqttWireMessage.MESSAGE_TYPE_PUBREL);
  ByteArrayInputStream bais=new ByteArrayInputStream(data);
  DataInputStream dis=new DataInputStream(bais);
  msgId=dis.readUnsignedShort();
  dis.close();
}

public MqttPubRel ( byte info , byte [ ] data ) throws IOException { super ( MqttWireMessage . MESSAGE_TYPE_PUBREL ) ; ByteArrayInputStream bais = new ByteArrayInputStream ( data ) ; DataInputStream dis = new DataInputStream ( bais ) ; msgId = dis . readUnsignedShort ( ) ; dis . close ( ) ; }
creates a pubrel based on a pubrel set of bytes read fro the network
