public class StreamZipWriter extends Object implements ArchiveWriter
| Constructor and Description |
|---|
StreamZipWriter(@NotNull OutputStream zippedOutputStream,
@NotNull File tempFile) |
| Modifier and Type | Method and 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.
|
public StreamZipWriter(@NotNull
@NotNull OutputStream zippedOutputStream,
@NotNull
@NotNull File tempFile)
throws IOException
IOExceptionpublic void compressFromStream(InputStream streamToZip, String pathInZip)
ArchiveWritercompressFromStream in interface ArchiveWriterstreamToZip - - source streampathInZip - - path in the archive where entry is written topublic void close()
throws BackupRestoreException
ArchiveWriterclose in interface ArchiveWriterclose in interface AutoCloseableBackupRestoreException - - throws if any exception occurredCopyright © 2003–2022 Atlassian. All rights reserved.