Here you can find the source of getNextZipEntry(ZipInputStream in)
Parameter | Description |
---|---|
in | the ZipInputStream to read from. |
public static ZipEntry getNextZipEntry(ZipInputStream in)
//package com.java2s; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; public class Main { /**//from w w w. j a v a2s. c o m * Reads the next ZIP file entry from the ZipInputStream and positions the * stream at the beginning of the entry data. * * @param in the ZipInputStream to read from. * @return a ZipEntry. */ public static ZipEntry getNextZipEntry(ZipInputStream in) { try { return in.getNextEntry(); } catch (Exception ex) { throw new RuntimeException( "Failed to get next entry in ZIP-file", ex); } } }