Class ZipHelper
java.lang.Object
de.s42.base.zip.ZipHelper
- Author:
- Benjamin Schiller
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ZipHelper
private ZipHelper()
-
-
Method Details
-
isArchive
Test if the given file is a ZIP archive. See https://stackoverflow.com/questions/33934178/how-to-identify-a-zip-file-in-java- Parameters:
file- this file will be tested if it is an archive- Returns:
- true if the file contains the according file signature (fileSignature == 0x504B0304 || fileSignature == 0x504B0506 || fileSignature == 0x504B0708)
-
isArchive
public static boolean isArchive(int fileSignature) Tests if the file signature is a valid ZIP - see https://en.wikipedia.org/wiki/List_of_file_signatures- Parameters:
fileSignature-- Returns:
-