public class CompressionHelper extends Object
Constructor and Description |
---|
CompressionHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addFileToTarGz(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream tOut,
String path,
String base)
Adds a file to the
TarArchiveOutputStream |
static org.apache.commons.compress.archivers.tar.TarArchiveOutputStream |
createTarGZ(String tarName)
Create a tarball withe the provided name.
|
public static org.apache.commons.compress.archivers.tar.TarArchiveOutputStream createTarGZ(String tarName) throws IOException
tarName
- Location of the export filesIOException
- Thrown if an error occurs while creating a stream.public static void addFileToTarGz(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream tOut, String path, String base) throws IOException
TarArchiveOutputStream
tOut
- The TarArchiveOutputStream to add topath
- The path of the file to addbase
- The optional fileName precursor.IOException
- Thrown if an error occurs while adding a file to the tarball.Copyright © 2017 ECG. All rights reserved.