How to reuse / reset an ZipInputStream?
问题 I want to reset the ZipInputStream (ie back to the start position) in order to read certain files in order. How do I do that? I am so stucked... ZipEntry entry; ZipInputStream input = new ZipInputStream(fileStream);//item.getInputStream()); int check =0; while(check!=2){ entry = input.getNextEntry(); if(entry.getName().toString().equals("newFile.csv")){ check =1; InputStreamReader inputStreamReader = new InputStreamReader(input); reader = new CSVReader(inputStreamReader); //read files //reset