org.ocopomo
Class StringFacility

java.lang.Object
  extended by org.ocopomo.StringFacility

public class StringFacility
extends java.lang.Object


Constructor Summary
StringFacility()
           
 
Method Summary
static java.lang.String getFileExtension(java.lang.String fileName)
           
static java.lang.String getFileName(java.lang.String fileName)
           
static java.lang.String getSubstrAfterLastUnderscore(java.lang.String fileName)
           
static java.lang.String getSubstrBeforeLastUnderscore(java.lang.String fileName)
           
static java.lang.String readFile(java.lang.String fileName)
          Read the file at the path given in input into a String
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringFacility

public StringFacility()
Method Detail

readFile

public static java.lang.String readFile(java.lang.String fileName)
Read the file at the path given in input into a String

Parameters:
fileName - The path of the folder to be read
Returns:
A String containing the contents of the specified file

getFileName

public static java.lang.String getFileName(java.lang.String fileName)

getFileExtension

public static java.lang.String getFileExtension(java.lang.String fileName)

getSubstrBeforeLastUnderscore

public static java.lang.String getSubstrBeforeLastUnderscore(java.lang.String fileName)

getSubstrAfterLastUnderscore

public static java.lang.String getSubstrAfterLastUnderscore(java.lang.String fileName)