Class FileUtils


  • public class FileUtils
    extends Object
    Utility to access files
    • Method Detail

      • getFile

        public static File getFile​(String fileName)
        Retrieve the File of the given file
        Parameters:
        fileName -
        Returns:
      • getFileContent

        public static String getFileContent​(String fileName)
                                     throws IOException
        Retrieve the content of the given file
        Parameters:
        fileName -
        Returns:
        Throws:
        IOException
      • getInputStreamFromFileNameAndClassLoader

        public static Optional<InputStream> getInputStreamFromFileNameAndClassLoader​(String fileName,
                                                                                     ClassLoader classLoader)
        Parameters:
        fileName -
        classLoader -
        Returns: