类 PackerImpl

java.lang.Object
org.glavo.pack200.impl.PackerImpl
所有已实现的接口:
Pack200.Packer

public class PackerImpl extends Object implements Pack200.Packer
  • 构造器详细资料

    • PackerImpl

      public PackerImpl()
      Constructs a Packer object and sets the initial state of the packer engines.
  • 方法详细资料

    • properties

      public SortedMap<String,String> properties()
      Get the set of options for the pack and unpack engines.
      指定者:
      properties 在接口中 Pack200.Packer
      返回:
      A sorted association of option key strings to option values.
    • pack

      public void pack(JarFile in, OutputStream out) throws IOException
      Takes a JarFile and converts into a pack-stream.

      Closes its input but not its output. (Pack200 archives are appendable.)

      指定者:
      pack 在接口中 Pack200.Packer
      参数:
      in - a JarFile
      out - an OutputStream
      抛出:
      IOException - if an error is encountered.
    • pack

      public void pack(JarInputStream in, OutputStream out) throws IOException
      Takes a JarInputStream and converts into a pack-stream.

      Closes its input but not its output. (Pack200 archives are appendable.)

      The modification time and deflation hint attributes are not available, for the jar-manifest file and the directory containing the file.

      指定者:
      pack 在接口中 Pack200.Packer
      参数:
      in - a JarInputStream
      out - an OutputStream
      抛出:
      IOException - if an error is encountered.
      另请参阅: