Class FileLoader

java.lang.Object
org.dwcj.util.files.FileLoader

public class FileLoader extends Object
In DWCJ we oftentimes need file contents as String This class helps keeping code free from too many redundancies
  • Method Details

    • getResourceFileAsString

      public static String getResourceFileAsString(String fileName)
      Parameters:
      fileName - the path to the file, which will be resolved using the Classloader that is also running the app
      Returns:
      the contents of the file as String