Class TarAppender
java.lang.Object
fr.gouv.vitam.storage.offers.tape.cas.TarAppender
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
ConstructorDescriptionTarAppender
(OutputStream outputStream, String tarId, long maxTarSize) TarAppender
(Path outputTarFilePath, String tarId, long maxTarSize) -
Method Summary
-
Constructor Details
-
TarAppender
- Throws:
IOException
-
TarAppender
-
-
Method Details
-
canAppend
public boolean canAppend(long size) -
append
public TarEntryDescription append(String entryName, InputStream inputStream, long size) throws IOException - Throws:
IOException
-
flush
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
getTarId
-
getEntryCount
public int getEntryCount() -
getBytesWritten
public long getBytesWritten() -
getDigestValue
-