public class ZipUtil
extends java.lang.Object
| Constructor and Description |
|---|
ZipUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsFile(byte[] bytes,
java.lang.String filename)
Does the specified zip bytes contain the specified file.
|
static boolean |
containsFileWithContents(byte[] bytes,
java.lang.String filename,
java.lang.String contents)
Does the specified zip bytes contain the specified file.
|
static boolean |
isZip(byte[] bytes)
Are the given bytes a zip file.
|
public static boolean isZip(byte[] bytes)
bytes - The bytespublic static boolean containsFile(byte[] bytes,
java.lang.String filename)
bytes - The bytesfilename - The file namepublic static boolean containsFileWithContents(byte[] bytes,
java.lang.String filename,
java.lang.String contents)
bytes - The bytesfilename - The file name