You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,i want to read file from ZipInputstream.
This zip may be password protected or not,
and the password can also be any one of the known passwords.
I saw all the construction methods of ZipInputStream,but there is no suitable one.
What should I do?
Is there a method similar to ZipFile.isEncrypted and setPassword.
Thank you.
The text was updated successfully, but these errors were encountered:
ZipInputStream zipInputStream = new ZipInputStream(...);
LocalFileHeader localFileHeader = zipInputStream.getNextEntry();
localFileHeader.isEncrypted();
But unfortunately, once the password is set via ZipInputStream's constructor, it cannot be changed again. I will add a feature to also set the password later via a ZipInputStream.setPassword(char[]) method. I will include this in the next release.
Hi,i want to read file from ZipInputstream.
This zip may be password protected or not,
and the password can also be any one of the known passwords.
I saw all the construction methods of ZipInputStream,but there is no suitable one.
What should I do?
Is there a method similar to ZipFile.isEncrypted and setPassword.
Thank you.
The text was updated successfully, but these errors were encountered: