Programatically Extract Single Specific File From 7zip Archive - Java - Linux
<p>I would really appreciate your input on the below scenario please.</p>

<p>The requirements:
- I have a 7zip archive file with several thousands of files in it
- I have a java application running on linux that is required to retrieve individual files from the 7 zip file</p>

<ul>
<li><p>I would like to retrieve a file from the archive by its path (e.g. my7zFile.7z/file1.pdf) without having to iterate through all the files in the archive and comparing file names.</p></li>
<li><p>I would like to avoid having to extract all files from the archive before running the search (the uncompressed archive is several TB).</p></li>
</ul>

<p>I had a look into 7zip Java Binding - specifically the IInArchive class, the only extract method seems to work via file index, not via file name:</p>

<p><a href="http://sevenzipjbind.sourceforge.net/javadoc/net/sf/sevenzipjbinding/IInArchive.html" rel="nofollow noreferrer">http://sevenzipjbind.sourceforge.net/javadoc/net/sf/sevenzipjbinding/IInArchive.html</a></p>

<p>Do you know of any other libraries that could help me with this use case or am I overlooking a way of doing this with 7zip jbinding?</p>

<p>Thank you</p>

<p>Kind regards,</p>

<p>Tobi</p>