Code example for ZipInputStream

0
	} 
 
	private ZipInputStream getZipInputStream(InputStream is)
		throws FileNotFoundException, IOException 
	{ 
		return new ZipInputStream(is);
	} 
 
	private String getRootDir(ZipInputStream zis)
		throws FileNotFoundException, IOException 
	{ 
		String root = "";
 
		ZipEntry ze = null;
		while((ze = zis.getNextEntry()) != null) {
			String name = ze.getName();
			zis.closeEntry();
 
			if (name.startsWith(MACOSX_PREFIX)) {
				continue; 
			} else {