Interface Pack200.Unpacker

All Known Implementing Classes:
Pack200UnpackerAdapter
Enclosing class:
Pack200

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

  • Method Details

    • addPropertyChangeListener

      void addPropertyChangeListener(PropertyChangeListener listener)
      Adds a listener for PropertyChange events.
      Parameters:
      listener - the listener to listen if PropertyChange events occurs.
    • properties

      SortedMap<String,String> properties()
      Gets a sorted map of the properties of this unpacker.
      Returns:
      the properties of unpacker.
    • removePropertyChangeListener

      void removePropertyChangeListener(PropertyChangeListener listener)
      Removes a listener.
      Parameters:
      listener - listener to remove.
    • unpack

      void unpack(File in, JarOutputStream out) throws IOException
      Unpacks the contents of the specified File to the specified JAR output stream.
      Parameters:
      in - file to uncompress.
      out - JAR output stream of uncompressed data.
      Throws:
      IOException - if I/O exception occurs.
    • unpack

      void unpack(InputStream in, JarOutputStream out) throws IOException
      Unpacks the specified stream to the specified JAR output stream.
      Parameters:
      in - stream to uncompress, preferably a BoundedInputStream.
      out - JAR output stream of uncompressed data.
      Throws:
      IOException - if I/O exception occurs.