Class TransferArchiveTARCompressor
java.lang.Object
software.xdev.testcontainers.imagebuilder.transfer.TransferArchiveTARCompressor
Forked from
CompressArchiveUtil to allow file
manipulation-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddFileToTar(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream tarArchiveOutputStream, Path file, String entryName) archiveTARFiles(File base, Iterable<Path> filesPaths, String archiveNameWithOutExtension) protected InputStreamcreateInputStreamForFile(Path filePath, org.apache.commons.compress.archivers.tar.TarArchiveEntry tarArchiveEntry) withContentModifier(FileContentModifier modifier)
-
Field Details
-
fileContentModifiers
-
-
Constructor Details
-
TransferArchiveTARCompressor
public TransferArchiveTARCompressor()
-
-
Method Details
-
withContentModifier
-
archiveTARFiles
public File archiveTARFiles(File base, Iterable<Path> filesPaths, String archiveNameWithOutExtension) throws IOException - Throws:
IOException
-
addFileToTar
protected void addFileToTar(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream tarArchiveOutputStream, Path file, String entryName) throws IOException - Throws:
IOException
-
createInputStreamForFile
protected InputStream createInputStreamForFile(Path filePath, org.apache.commons.compress.archivers.tar.TarArchiveEntry tarArchiveEntry) throws IOException - Throws:
IOException
-