public class ArchiveUtils extends Object
ArchiveUtils.Type
.Modifier and Type | Class and Description |
---|---|
static class |
ArchiveUtils.Type |
Modifier and Type | Method and Description |
---|---|
static ArchiveCompressor |
createArchiveCompressor(File file)
Create an
ArchiveCompressor in given file . |
static ArchiveCompressor |
createArchiveCompressor(File file,
ArchiveUtils.Type type)
|
static void |
decompress(File input,
ArchiveUtils.Type type,
File outputDir)
Decompress file
input to directory outputDir using type decompression. |
static void |
decompress(File input,
File outputDir)
Decompress file
input to directory outputDir using type decompression. |
public static ArchiveCompressor createArchiveCompressor(File file, ArchiveUtils.Type type)
public static ArchiveCompressor createArchiveCompressor(File file)
ArchiveCompressor
in given file
.
The compression type ArchiveUtils.Type
is determined based on file
extension. See getTypeForFile(File)
.public static void decompress(File input, ArchiveUtils.Type type, File outputDir) throws IOException
input
to directory outputDir
using type
decompression.
The compression type ArchiveUtils.Type
is determined based on file
extension. See getTypeForFile(File)
.IOException
public static void decompress(File input, File outputDir) throws IOException
input
to directory outputDir
using type
decompression.IOException
Copyright © 2002-2021 Atlassian. All Rights Reserved.