Package com.acrolinx.sidebar.utils
Class FileUtils
- java.lang.Object
-
- com.acrolinx.sidebar.utils.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 theInputFormat
s from file name with file extension.
-
-
-
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 theInputFormat
s from file name with file extension. For integration using an Acrolinx Server 5.2 or newer just set the InputFormat to AUTO.
-
-