Class FileUtils


  • public class FileUtils
    extends java.lang.Object
    Author:
    Stuart Douglas
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void deleteRecursive​(java.nio.file.Path directory)  
      static java.lang.String readFile​(java.io.InputStream file)
      Reads the file and converting it to String using UTF-8 encoding.
      static java.lang.String readFile​(java.lang.Class<?> testClass, java.lang.String fileName)  
      static java.lang.String readFile​(java.net.URL url)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • readFile

        public static java.lang.String readFile​(java.lang.Class<?> testClass,
                                                java.lang.String fileName)
      • readFile

        public static java.lang.String readFile​(java.net.URL url)
      • readFile

        public static java.lang.String readFile​(java.io.InputStream file)
        Reads the file and converting it to String using UTF-8 encoding.
      • deleteRecursive

        public static void deleteRecursive​(java.nio.file.Path directory)
                                    throws java.io.IOException
        Throws:
        java.io.IOException