public class ZipWrapper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
zipFile |
protected java.nio.file.FileSystem |
zipfs |
| Constructor and Description |
|---|
ZipWrapper(java.io.File resource) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(java.lang.String path,
byte[] write,
java.nio.file.OpenOption... options) |
void |
addElement(java.lang.String path,
java.io.File file,
java.nio.file.CopyOption... options) |
boolean |
close() |
java.io.File |
getFile() |
java.util.List<java.lang.String> |
listElements(java.lang.String path) |
java.io.InputStream |
readElement(java.lang.String path,
java.nio.file.OpenOption... options) |
void |
removeElement(java.lang.String path,
java.io.File callback,
java.nio.file.CopyOption... options) |
protected final java.io.File zipFile
protected java.nio.file.FileSystem zipfs
public ZipWrapper(java.io.File resource)
throws java.io.IOException
java.io.IOExceptionpublic java.io.File getFile()
public void addElement(java.lang.String path,
byte[] write,
java.nio.file.OpenOption... options)
throws java.io.IOException
java.io.IOExceptionpublic void addElement(java.lang.String path,
java.io.File file,
java.nio.file.CopyOption... options)
throws java.io.IOException
java.io.IOExceptionpublic java.io.InputStream readElement(java.lang.String path,
java.nio.file.OpenOption... options)
throws java.io.IOException
java.io.IOExceptionpublic void removeElement(java.lang.String path,
java.io.File callback,
java.nio.file.CopyOption... options)
throws java.io.IOException
java.io.IOExceptionpublic java.util.List<java.lang.String> listElements(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic boolean close()
throws java.io.IOException
java.io.IOException