@@ -0,0 +1,898 @@
+package org.ovirt.engine.core.utils.archivers.tar;%0A%0Aimport java.io.OutputStream;%0A%0Aimport org.apache.commons.compress.archivers.tar.TarArchiveEntry;%0Aimport org.apache.commons.compress.archivers.tar.TarArchiveOutputStream;%0A%0Apublic class InMemoryTar implements AutoCloseable%7B%0A    private TarArchiveOutputStream tarArchiveOutputStream;%0A%0A    public InMemoryTar(OutputStream outputStream) %7B%0A        tarArchiveOutputStream = new TarArchiveOutputStream(outputStream);%0A    %7D%0A%0A    public void addTarEntry(byte%5B%5D data, String name) throws Exception %7B%0A        TarArchiveEntry entry = new TarArchiveEntry(name);%0A        entry.setSize(data.length);%0A        tarArchiveOutputStream.putArchiveEntry(entry);%0A        tarArchiveOutputStream.write(data);%0A        tarArchiveOutputStream.closeArchiveEntry();%0A    %7D%0A%0A    @Override%0A    public void close() throws Exception %7B%0A        tarArchiveOutputStream.close();%0A    %7D%0A%7D%0A

Add support for creating in memory tar