Class ResourceUtils


  • public class ResourceUtils
    extends Object
    ResourceUtils Read resources
    Author:
    Christian Paul
    • Constructor Detail

      • ResourceUtils

        public ResourceUtils()
    • Method Detail

      • getResourceFileAsString

        public static String getResourceFileAsString​(String fileName)
                                              throws IOException
        Reads given resource file as a string.
        Parameters:
        fileName - path to the resource file
        Returns:
        the file's contents
        Throws:
        IOException - if read fails for any reason