I have a folder containing a large number of .zip files. I would like to enlist
those file and recursively read the compressed .xml files. How would i first enlist those .zip files?I didn’t get any idea at all.
I have a folder containing a large number of .zip files. I would like
Share
create a
Fileobject for your directory and call itslistFilesmethod with an appropriate filter for your zip Files.Construct a
ZipFileobject for every zipfile and call itsentries()method to get a list of entries. Find theZipEntryof the sought XML file and callZipFile.getInputstream(xmlZipFileEntry)to start reading its content.