Open a zip file from within a jar file

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P5
    • None
    • Affects Version/s: 5.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: