Package org.panda_lang.pandomium.util
Class ArchiveUtils
java.lang.Object
org.panda_lang.pandomium.util.ArchiveUtils
public class ArchiveUtils extends Object
-
Constructor Summary
Constructors Constructor Description ArchiveUtils() -
Method Summary
Modifier and Type Method Description static InputStreamunGzip(InputStream gzipArchive)static voidunpackTar(InputStream tarArchive, File outputDirectory)static voidunpackTar(org.apache.commons.compress.archivers.tar.TarArchiveInputStream tarStream, org.apache.commons.compress.archivers.tar.TarArchiveEntry[] entries, File outputDirectory)static voidunpackTarArchiveEntry(org.apache.commons.compress.archivers.tar.TarArchiveInputStream tarStream, org.apache.commons.compress.archivers.tar.TarArchiveEntry entry, File outputDirectory)
-
Constructor Details
-
ArchiveUtils
public ArchiveUtils()
-
-
Method Details
-
unGzip
- Throws:
IOException
-
unpackTar
- Throws:
IOException
-
unpackTar
public static void unpackTar(org.apache.commons.compress.archivers.tar.TarArchiveInputStream tarStream, org.apache.commons.compress.archivers.tar.TarArchiveEntry[] entries, File outputDirectory) throws IOException- Throws:
IOException
-
unpackTarArchiveEntry
public static void unpackTarArchiveEntry(org.apache.commons.compress.archivers.tar.TarArchiveInputStream tarStream, org.apache.commons.compress.archivers.tar.TarArchiveEntry entry, File outputDirectory) throws IOException- Throws:
IOException
-