Package org.apache.flink.util
Class CompressionUtils
- java.lang.Object
-
- org.apache.flink.util.CompressionUtils
-
@Internal public class CompressionUtils extends Object
Utils used to extract compressed files. It will try to restore the permission of the files if possible.
-
-
Constructor Summary
Constructors Constructor Description CompressionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidextractFile(String srcFilePath, String targetDirPath, String originalFileName)static voidextractTarFile(String inFilePath, String targetDirPath)static voidextractZipFileWithPermissions(String zipFilePath, String targetPath)
-
-
-
Method Detail
-
extractFile
public static void extractFile(String srcFilePath, String targetDirPath, String originalFileName) throws IOException
- Throws:
IOException
-
extractTarFile
public static void extractTarFile(String inFilePath, String targetDirPath) throws IOException
- Throws:
IOException
-
extractZipFileWithPermissions
public static void extractZipFileWithPermissions(String zipFilePath, String targetPath) throws IOException
- Throws:
IOException
-
-