org.jclouds.gogrid.util
Class GoGridUtils

java.lang.Object
  extended by org.jclouds.gogrid.util.GoGridUtils

public class GoGridUtils
extends Object

Author:
Oleksiy Yarmula

Constructor Summary
GoGridUtils()
           
 
Method Summary
static String parseStringByPatternAndGetNthMatchGroup(String stringToParse, Pattern pattern, int nthGroup)
          Matches nth group or returns null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoGridUtils

public GoGridUtils()
Method Detail

parseStringByPatternAndGetNthMatchGroup

public static String parseStringByPatternAndGetNthMatchGroup(String stringToParse,
                                                             Pattern pattern,
                                                             int nthGroup)
Matches nth group or returns null.

Parameters:
stringToParse - string that the pattern will be applied to
pattern - regular expression pattern
nthGroup - number of the group to extract / return
Returns:
matched group or null


Copyright © 2009-2010 jclouds. All Rights Reserved.