Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6370714

Open a zip file from within a jar file

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 5.0
    • core-libs

      A DESCRIPTION OF THE REQUEST :
      I would like to open a set of zip'd sound bites from within a jar file. I would need a ZipFile constructor that accepts a ZipEntry of another zip'd file.

      zf = new ZipFile("foo.jar");
      ze = zf.getEntry("SoundBite.zip");

      zf2 = new ZipFile( ze ); //<- No constructor for ZipFile(ZipEntry ze)!
      ze2 = zf2.getEntry("Horn.wav");
      is = zf2.getInputStream( ze2 );

      JUSTIFICATION :
      So far, the only way to do this process is to extract the internal zipfile, and temporarly store the file somewhere. This uses extra Time. It also uses extra storage. And then u have to still open the zip'd file of sound bites.

            Unassigned Unassigned
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: