public class TarStreamBuilder extends Object
| Constructor and Description |
|---|
TarStreamBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addByteEntry(byte[] contents,
String name)
Adds a blob to the archive.
|
void |
addTarArchiveEntry(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry)
Adds a
TarArchiveEntry to the archive. |
Blob |
toBlob() |
public void addTarArchiveEntry(org.apache.commons.compress.archivers.tar.TarArchiveEntry entry)
TarArchiveEntry to the archive.entry - the TarArchiveEntrypublic void addByteEntry(byte[] contents,
String name)
addTarArchiveEntry(org.apache.commons.compress.archivers.tar.TarArchiveEntry).contents - the bytes to add to the tarballname - the name of the entry (i.e. filename)Copyright © 2018. All rights reserved.