public class ZipUtil
extends java.lang.Object
| Constructor and Description |
|---|
ZipUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
modify(java.io.InputStream input,
java.io.OutputStream output,
java.util.Map<java.lang.String,java.io.InputStream> toModify,
java.util.Set<java.lang.String> toOmit)
Modifies the given entries in the zip.
|
static void |
read(java.io.File input,
java.lang.String toRead,
com.diffplug.common.base.Throwing.Specific.Consumer<java.io.InputStream,java.io.IOException> reader)
Reads the given entry from the zip.
|
static void |
zip(java.io.File input,
java.lang.String pathWithinArchive,
java.io.File output)
Zips input into output, with the given name within the archive.
|
public static void read(java.io.File input,
java.lang.String toRead,
com.diffplug.common.base.Throwing.Specific.Consumer<java.io.InputStream,java.io.IOException> reader)
throws java.io.IOException
java.io.IOExceptionpublic static void modify(java.io.InputStream input,
java.io.OutputStream output,
java.util.Map<java.lang.String,java.io.InputStream> toModify,
java.util.Set<java.lang.String> toOmit)
throws java.io.IOException
java.io.IOExceptionpublic static void zip(java.io.File input,
java.lang.String pathWithinArchive,
java.io.File output)
throws java.io.IOException
java.io.IOException