Package java.util.jar

Interface Pack200.Packer

Enclosing class:
Pack200

public static interface Pack200.Packer
The interface defining the API for converting a JAR file to an output stream in the Pack200 format.
  • Field Details

  • Method Details

    • properties

      SortedMap<String,​String> properties()
      Returns a sorted map of the properties of this packer.
      Returns:
      the properties of the packer.
    • pack

      void pack​(JarFile in, OutputStream out) throws IOException
      Pack the specified JAR file to the specified output stream.
      Parameters:
      in - JAR file to be compressed.
      out - stream of compressed data.
      Throws:
      IOException - if I/O exception occurs.
    • pack

      void pack​(JarInputStream in, OutputStream out) throws IOException
      Pack the data from the specified jar input stream to the specified output stream.
      Parameters:
      in - stream of uncompressed JAR data.
      out - stream of compressed data.
      Throws:
      IOException - if I/O exception occurs.
    • addPropertyChangeListener

      void addPropertyChangeListener​(PropertyChangeListener listener)
      add a listener for PropertyChange events
      Parameters:
      listener - the listener to listen if PropertyChange events occurs
    • removePropertyChangeListener

      void removePropertyChangeListener​(PropertyChangeListener listener)
      remove a listener
      Parameters:
      listener - listener to remove