public interface Archive
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
add(BytesSource source)
Add a source to the archive.
|
void |
add(ZipSource sources)
Add a set of selected entries from an other zip archive.
|
void |
close() |
void |
delete(java.lang.String name)
Delete an entry from this archive.
|
void add(@NonNull
BytesSource source)
throws java.io.IOException
source - The source to add to this zip archive.java.lang.IllegalStateException - if the entry name already exists in the archive.java.io.IOException - if writing to the zip archive fails.void add(@NonNull
ZipSource sources)
throws java.io.IOException
sources - A zip archive with selected entries to add to this zip archive.java.lang.IllegalStateException - if the entry name already exists in the archive.java.io.IOException - if writing to the zip archive fails.void delete(@NonNull
java.lang.String name)
throws java.io.IOException
name - The name of the entry to delete.java.lang.IllegalStateException - if entries have been added.java.io.IOExceptionvoid close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException