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
IOException
public TarAppender(OutputStream outputStream, String tarId, long maxTarSize)
public boolean canAppend(long size)
public TarEntryDescription append(String entryName, InputStream inputStream, long size) throws IOException
IOException
public void flush() throws IOException
IOException
public void close() throws IOException
close
in interface AutoCloseable
IOException
public String getTarId()
public int getEntryCount()
public long getBytesWritten()
public String getDigestValue()
Copyright © 2019 Vitam. All rights reserved.