User Activity

  • Posted a comment on discussion Help on 7-Zip-JBinding

    Hey, how did you solve it? There is nothing to solve. It works like this: You have test.txt file When you compress your file to bzip2 you get test.txt.bz2 In the file content there is no name "test.txt" encoded This means, if you rename your file to abc.bz2 it will be not possible to recover the original name "test.txt". Extracting "abc.bz2" with 7z would you give file "abc", not "test.txt". I hope, it helps clarify situation.

  • Posted a comment on discussion Help on 7-Zip-JBinding

    Actually, it should be pretty straight forward. Just extract gz into a temporary file, then open it and extract again.

  • Posted a comment on discussion Help on 7-Zip-JBinding

    It would be cool to write such code and share it. But don't have something working out of the box yet. I created an issue https://github.com/borisbrodski/sevenzipjbinding/issues/53

  • Posted a comment on discussion Open Discussion on 7-Zip-JBinding

    Hi Ami, I don't see any good alternative. what you can do: you can start the extraction of one item, then throw an exception after some bytes were extracted and passed to write () method to stop the process. Then try the next item. Cheers Boris

  • Posted a comment on discussion Help on 7-Zip-JBinding

    Ok, your code has a big problem. The method write of the ISequentialOutStream get called multiple times for one archive item. Imagine, you have a file 1T in size that you want to extract. It is impossible to put 1T in one Java array. So the write() method get called many times passing chunks of the file to you.

  • Posted a comment on discussion Help on 7-Zip-JBinding

    Hi, are you using 7-Zip-JBinding in mutli-task an environment? (Multiple java processes)

  • Posted a comment on discussion Help on 7-Zip-JBinding

    You asked about ZIP files :) is there any method which check given zip file is password protected or not For 7z and RAR archives this approach should be extended as following: - Use your own implementation of IArchiveOpenCallback that also implements ICryptoGetTextPassword - Try to open archive - If successful, the 7z or RAR archive itself is not password protected - If cryptoGetTextPassword() get called, the entire archive is password protected Now proceed with the same stratagy extracting archive...

  • Posted a comment on discussion Help on 7-Zip-JBinding

    Hello, hm, I might be useful, but no, we don't have it. But you can just try to open an archive and then extract first item (implementing both IArchiveExtractCallback and ICryptoGetTextPassword in your callback ) . If you get asked for the password, the archive item is password protected and you can cancel the extraction process by throwing an exception. Keep in mind, that some archive items might be password protected and some not. Cheers, Boris

View All

Personal Data

Username:
boris_brodski
Joined:
2005-06-29 12:53:02

Projects

This is a list of open source software projects that Boris Brodski is associated with:

Personal Tools