-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0
-
tiger
-
sparc
-
generic
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.
======================================================================