In this tutorial, We will discuss the use of getEntry() method. The getEntry()
available in ZipFile class, and it is used to read entries of zip files.
In this Example, we will search given entry in a zip file. The getEntry
method search specific
entry in a zip file, and returns specified entry or null if it not available in it.
About ZipFile API:
The java.util.zip.ZipFile class extends javalang.Object class. It provides the following methods:
|ZipEntry||getEntry()||The getEntry() method returns given name entry if entry found otherwise null if entry not found.|
Entry name bharat.txt is found.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.