< prev index next >

src/java.base/share/classes/com/sun/java/util/jar/pack/PackerImpl.java

Print this page
rev 50498 : 8199871: Deprecate pack200 and unpack200 tools
Reviewed-by:


  38 import java.util.ArrayList;
  39 import java.util.Collections;
  40 import java.util.HashMap;
  41 import java.util.List;
  42 import java.util.ListIterator;
  43 import java.util.Map;
  44 import java.util.SortedMap;
  45 import java.util.jar.JarEntry;
  46 import java.util.jar.JarFile;
  47 import java.util.jar.JarInputStream;
  48 import java.util.jar.Pack200;
  49 
  50 
  51 /*
  52  * Implementation of the Pack provider.
  53  * </pre></blockquote>
  54  * @author John Rose
  55  * @author Kumar Srinivasan
  56  */
  57 
  58 
  59 public class PackerImpl  extends TLGlobals implements Pack200.Packer {
  60 
  61     /**
  62      * Constructs a Packer object and sets the initial state of
  63      * the packer engines.
  64      */
  65     public PackerImpl() {}
  66 
  67     /**
  68      * Get the set of options for the pack and unpack engines.
  69      * @return A sorted association of option key strings to option values.
  70      */
  71     public SortedMap<String, String> properties() {
  72         return props;
  73     }
  74 
  75     //Driver routines
  76 
  77     /**
  78      * Takes a JarFile and converts into a pack-stream.




  38 import java.util.ArrayList;
  39 import java.util.Collections;
  40 import java.util.HashMap;
  41 import java.util.List;
  42 import java.util.ListIterator;
  43 import java.util.Map;
  44 import java.util.SortedMap;
  45 import java.util.jar.JarEntry;
  46 import java.util.jar.JarFile;
  47 import java.util.jar.JarInputStream;
  48 import java.util.jar.Pack200;
  49 
  50 
  51 /*
  52  * Implementation of the Pack provider.
  53  * </pre></blockquote>
  54  * @author John Rose
  55  * @author Kumar Srinivasan
  56  */
  57 
  58 @SuppressWarnings({"removal"})
  59 public class PackerImpl  extends TLGlobals implements Pack200.Packer {
  60 
  61     /**
  62      * Constructs a Packer object and sets the initial state of
  63      * the packer engines.
  64      */
  65     public PackerImpl() {}
  66 
  67     /**
  68      * Get the set of options for the pack and unpack engines.
  69      * @return A sorted association of option key strings to option values.
  70      */
  71     public SortedMap<String, String> properties() {
  72         return props;
  73     }
  74 
  75     //Driver routines
  76 
  77     /**
  78      * Takes a JarFile and converts into a pack-stream.


< prev index next >