public class TarStreamBuilder extends Object
Constructor and Description |
---|
TarStreamBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addBlobEntry(Blob blob,
long size,
String name)
Adds a blob to the archive.
|
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 TarArchiveEntry
public 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)public void addBlobEntry(Blob blob, long size, String name)
Blob
s; for
adding files to the archive, use addTarArchiveEntry(org.apache.commons.compress.archivers.tar.TarArchiveEntry)
.blob
- the Blob
to add to the tarballsize
- the size (in bytes) of blob
name
- the name of the entry (i.e. filename)Copyright © 2018. All rights reserved.