コード例 #1
0
 /**
  * Creates a TelURL based on given URI string. The scheme or '+' should not be included in the
  * phoneNumber string argument.
  *
  * @param uri - the new string value of the phoneNumber.
  * @throws URISyntaxException if the URI string is malformed.
  */
 public javax.sip.address.TelURL createTelURL(String uri) throws ParseException {
   if (uri == null) throw new NullPointerException("null url");
   String telUrl = "tel:" + uri;
   try {
     StringMsgParser smp = new StringMsgParser();
     TelURLImpl timp = (TelURLImpl) smp.parseUrl(telUrl);
     return (TelURL) timp;
   } catch (ParseException ex) {
     throw new ParseException(ex.getMessage(), 0);
   }
 }