unzipping .fsd file
<p>I am using the following code for unzipping a <code>.fsd</code> file, but it is showing the exception:</p>

<pre><code>java.util.zip.ZipException: Central Directory Entry not found
</code></pre>

<p>My code is:</p>

<pre><code>public void unzipFolder(String zipfile_name,String unzipfolder_name){
    System.out.println("zip file nme----"+zipfile_name);

    try {
        ZipFile zf = new ZipFile(zipfile_name);
        System.out.println("zip file size----"+zf.size());
        Enumeration&lt; ? extends ZipEntry&gt; zipEnum = zf.entries();
        String dir = unzipfolder_name;

        while( zipEnum.hasMoreElements() ) {
        ZipEntry item = (ZipEntry) zipEnum.nextElement();

        if (item.isDirectory()) {
        File newdir = new File(dir + File.separator + item.getName());
        newdir.mkdir();
        } else {
        String newfilePath = dir + File.separator + item.getName();
        File newFile = new File(newfilePath);
        if (!newFile.getParentFile().exists()) {
        newFile.getParentFile().mkdirs();
        }
        copyInputStream(zf.getInputStream(item),
                   new BufferedOutputStream(new FileOutputStream(newfilePath)));

        }
        }
        zf.close();
        } catch (Exception e) {
        e.printStackTrace();
        }
}


public static final void copyInputStream(InputStream in, OutputStream out) {
    byte[] buffer = new byte[1024];
    int len;
    try {
        while((len = in.read(buffer)) &gt;= 0){
            out.write(buffer, 0, len);
        }
        in.close();
        out.close();
    } catch (IOException e) {
        System.err.println("Zip -&gt; copyInputStream : "+e.getMessage()); 
    }
}
</code></pre>

<p>Here <code>zipfile_name=/mnt/sdcard/forside_bookshelf_download/P160225200007046510000718MASenC.fsd</code>, and <code>unzipfolder_name=/mnt/sdcard/</code>.</p>

<p>I got the above exception in the following line:</p>

<pre><code>ZipFile zf = new ZipFile(zipfile_name);
</code></pre>

<p>Can anybody help me out?</p>
