Class FileUtils


  • public final class FileUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void deleteDirectory​(java.nio.file.Path directory)  
      static void extractZipFile​(java.nio.file.Path zipFilePath, java.nio.file.Path destinationDirectoryPath)  
      static InputFormat getInputFormat​(java.lang.String fileName)
      This is just a basic implementation to get the InputFormats from file name with file extension.
      • Methods inherited from class java.lang.Object

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

      • deleteDirectory

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

        public static void extractZipFile​(java.nio.file.Path zipFilePath,
                                          java.nio.file.Path destinationDirectoryPath)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getInputFormat

        public static InputFormat getInputFormat​(java.lang.String fileName)
        This is just a basic implementation to get the InputFormats from file name with file extension. For integration using an Acrolinx Server 5.2 or newer just set the InputFormat to AUTO.