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 sourePath, String targetPath) archiveTARFiles(Map<Path, String> filesToTransfer, String archiveNameWithOutExtension) protected InputStreamcreateInputStreamForFile(Path sourePath, String targetPath, 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(Map<Path, String> filesToTransfer, String archiveNameWithOutExtension) throws IOException- Throws:
IOException
-
addFileToTar
protected void addFileToTar(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream tarArchiveOutputStream, Path sourePath, String targetPath) throws IOException - Throws:
IOException
-
createInputStreamForFile
protected InputStream createInputStreamForFile(Path sourePath, String targetPath, org.apache.commons.compress.archivers.tar.TarArchiveEntry tarArchiveEntry) throws IOException - Throws:
IOException
-