code: static String decode(InputStream in) throws ApiDataException, ApiConnectionException {
          StringBuilder res = new StringBuilder();
          decode(in, res);
          return res.toString();
      }
docs: decode bytes from an input stream of Mikrotik protocol sentences into
  text