Code example for Matcher

Methods: find, group, groupCount

0
  private static final Pattern dbi = Pattern.compile("oauth_token_secret=([^&]*)");
 
  private static String a(String paramString, Pattern paramPattern)
  { 
    Matcher localMatcher = paramPattern.matcher(paramString);
    if ((localMatcher.find()) && (localMatcher.groupCount() > 0))
      return c.decode(localMatcher.group(1));
    throw new b("Response body is incorrect. Can't extract token and secret from this: '" + paramString + "'", null);
  } 
 
  public final i vW(String paramString)
  { 
    d.aI(paramString, "Response body is incorrect. Can't extract a token from an empty string");
    return new i(a(paramString, dbh), a(paramString, dbi), paramString);
  } 
} 
 
/* Location:           /home/danghvu/0day/WeChat/WeChat_4.5_dex2jar.jar 
 * Qualified Name:     b.a.c.g 
 * JD-Core Version:    0.6.2 
 */