| Constructor and Description |
|---|
ZipArchive(java.io.File file)
The object used to manipulate a zip archive.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(BytesSource source)
See Archive.add documentation
|
void |
add(ZipSource sources)
See Archive.add documentation
|
void |
close()
Carry all write operations to the storage system to reflect the delete/add operations
requested via add/delete methods.
|
ZipInfo |
closeWithInfo() |
void |
delete(java.lang.String name)
See Archive.delete documentation
|
java.nio.ByteBuffer |
getContent(java.lang.String name) |
java.io.File |
getFile() |
boolean |
isClosed() |
java.util.List<java.lang.String> |
listEntries() |
static java.util.Map<java.lang.String,Entry> |
listEntries(java.io.File file)
Returns the list of zip entries found in the archive.
|
public ZipArchive(@NonNull
java.io.File file)
throws java.io.IOException
file - the file objectjava.io.IOException@NonNull public static java.util.Map<java.lang.String,Entry> listEntries(@NonNull java.io.File file) throws java.io.IOException
file - the zip archive to list.java.io.IOException@NonNull public java.util.List<java.lang.String> listEntries()
@Nullable
public java.nio.ByteBuffer getContent(@NonNull
java.lang.String name)
throws java.io.IOException
java.io.IOExceptionpublic void add(@NonNull
BytesSource source)
throws java.io.IOException
public void add(@NonNull
ZipSource sources)
throws java.io.IOException
public void delete(@NonNull
java.lang.String name)
public void close()
throws java.io.IOException
@NonNull public ZipInfo closeWithInfo() throws java.io.IOException
java.io.IOException@NonNull public java.io.File getFile()
public boolean isClosed()