org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.util
Class Utilities

java.lang.Object
  extended by org.apache.stratos.cartridge.agent.artifact.deployment.synchronizer.git.util.Utilities

public class Utilities
extends Object

String Utility methods


Constructor Summary
Utilities()
           
 
Method Summary
static void deleteFolderStructure(File existingDir)
          Deletes a folder structure recursively
static String getMatch(String input, String regex, int group)
          Searches for a match in a input String against a regex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utilities

public Utilities()
Method Detail

getMatch

public static String getMatch(String input,
                              String regex,
                              int group)
Searches for a match in a input String against a regex

Parameters:
input - input String
regex - regex to match
group - grouping,
Returns:
result of the match if found, else empty String

deleteFolderStructure

public static void deleteFolderStructure(File existingDir)
Deletes a folder structure recursively

Parameters:
existingDir - folder to delete


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.