Package com.e1c.g5.v8.fastzip
Interface IFzipWriter
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
ParallelFzipWriter
FastZIP archive writer.
All methods are synchronous and can be called in any order any number of times.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetProgressListener(IProgressListener progressListener) Sets a progress listener.voidwrite(IFzipEntry[] entries) Writes entries to the archive.
-
Method Details
-
setProgressListener
Sets a progress listener. The listener is used to track progress ofwrite(IFzipEntry[])operation.- Parameters:
progressListener- the progress listener, ornullto remove a previously set listener
-
write
Writes entries to the archive. The entries must belong to the registry of this writer. Reports the progress to a progress listener if it was set.If the operation fails the writer might end up in a closed state and no guarantees on the contents and consistency of the archive are provided.
- Parameters:
entries- the entries, cannot benull, cannot containnullvalues- Throws:
FzipException- if the writer failed to compress the entries for any reasonIOException- if an IO error occurs
-