java.lang.Object
de.s42.base.zip.ZipHelper
-
Konstruktorübersicht
-
Methodenübersicht
-
Konstruktordetails
-
ZipHelper
private ZipHelper()
-
-
Methodendetails
-
isArchive
Test if the given file is a ZIP archive. See https://stackoverflow.com/questions/33934178/how-to-identify-a-zip-file-in-java- Parameter:
file
- this file will be tested if it is an archive- Gibt zurück:
- 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- Parameter:
fileSignature
-- Gibt zurück:
-