org.ocopomo
Class StringFacility
java.lang.Object
org.ocopomo.StringFacility
public class StringFacility
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringFacility
public StringFacility()
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)