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

No way to tune the Pack200 properties

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 5.0
    • 1.4.0
    • deploy



      Name: akR10050 Date: 05/07/2003


      javax.pack API does not provide a way to tune up the pack/unpack properties.
      It's not clear what are these properties, how they can be affected. Obviously,
      they are not system properties which is illustrated in the following example:

      ------------- Test13.java ---------------

      import java.util.Properties;
      import javax.pack.Pack200;

      public class Test13 {
          public static void main(String[] args) {

              System.setProperty(Pack200.PACK_COMPRESSION_LEVEL, "7");

              Pack200 p = new Pack200();
              Properties props = p.getPackProperties();

              System.out.println(props.getProperty(Pack200.PACK_COMPRESSION_LEVEL));

          }
      }

      -----------------------------------------

      Executing the example from the command line yields:
      -------- output ------------
      # java Test13
      0
      ----------------------------

      Javadoc spec mentions the set of possible values of the properties and the
      defaults, but it makes no sense if the properties cannot be changed.

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: