public class TarAppender extends Object implements AutoCloseable
| Constructor and Description |
|---|
TarAppender(OutputStream outputStream,
String tarId,
long maxTarSize) |
TarAppender(Path outputTarFilePath,
String tarId,
long maxTarSize) |
| Modifier and Type | Method and Description |
|---|---|
TarEntryDescription |
append(String entryName,
InputStream inputStream,
long size) |
boolean |
canAppend(long size) |
void |
close() |
void |
flush() |
long |
getBytesWritten() |
String |
getDigestValue() |
int |
getEntryCount() |
String |
getTarId() |
public TarAppender(Path outputTarFilePath, String tarId, long maxTarSize) throws IOException
IOExceptionpublic TarAppender(OutputStream outputStream, String tarId, long maxTarSize)
public boolean canAppend(long size)
public TarEntryDescription append(String entryName, InputStream inputStream, long size) throws IOException
IOExceptionpublic void flush()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOExceptionpublic String getTarId()
public int getEntryCount()
public long getBytesWritten()
public String getDigestValue()
Copyright © 2019 Vitam. All rights reserved.