I'm trying to design one tool using java which detects WinZip file is licensed or not.
I have tried this:
File file = new File("C:/D/tst/myfile.zip");
isValidZip(file);
public static boolean isValidZip(File file) {
ZipFile zipfile = null;
try {
zipfile = new ZipFile(file);
System.out.println("valid");
return true;
} catch (IOException e) {
System.out.println("Invalid");
return false;
}
}
But it really does not validate the licensing of the file.
Do we have any Java Class using which we can verify if the file is licensed or not?
I want to detect following using java: