public static String readResourceAsStream(String path) {
        try {
            InputStream inputStream = ResourceUtil.getResourceAsStream(path);
            return ResourceUtil.readFromInputStreamIntoString(inputStream);
        } catch (Exception e) {
            throw new DataUtilException("Failed to load resource", e);
        }
    }
public static String readResourceAsStream ( String path ) { try { InputStream inputStream = ResourceUtil . getResourceAsStream ( path ) ; return ResourceUtil . readFromInputStreamIntoString ( inputStream ) ; } catch ( Exception e ) { throw new DataUtilException ( "Failed to load resource" , e ) ; } }
This method looks for a file on the provided path, attempts to load it as a stream and returns it as a string
@param path path
@return {@code String} text