Interface ArchiveWriter
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
StreamZipWriter
public interface ArchiveWriter extends AutoCloseable
Represents interface capable of archiving data from the input stream- Since:
- 7.20.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Locking method that waits for all data to be archived and closes necessary resources.void
compressFromStream(InputStream streamToZip, String pathInZip)
Compresses data from the provided input stream into an archive.
-
-
-
Method Detail
-
compressFromStream
void compressFromStream(InputStream streamToZip, String pathInZip)
Compresses data from the provided input stream into an archive. The input stream will be closed by the ArchiveWriter implementation.- Parameters:
streamToZip
- - source streampathInZip
- - path in the archive where entry is written to
-
close
void close() throws BackupRestoreException
Locking method that waits for all data to be archived and closes necessary resources.- Specified by:
close
in interfaceAutoCloseable
- Throws:
BackupRestoreException
- - throws if any exception occurred
-
-