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

argument to Pack200.pack method should be JarInputStream instead of JarFile

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 1.4.0
    • deploy



      Name: akR10050 Date: 05/07/2003


      javax.pack.Pack200.pack(JarFile in, OutputStream out) method accepts a JarFile
      as the source of input. While it is reasonable to assume that jar content is
      most likely to be available as a file, it is not always the case. Content of a
      jar file can be available in many forms, a byte array is an example.

      Pack200 API should provide a method to handle a JarInputStream along with (or
      instead of) pack method for a JarFile. The signature of the method could be

      public void javax.pack.Pack200.pack(JarInputStream in, OutputStream out)
      throws IOException;

      ======================================================================

            ksrini Kumar Srinivasan
            kaisunw Kai Kai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: