Interface Pack200.Unpacker

  • 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.
    • Method Detail

      • properties

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

        void unpack​(InputStream in,
                    JarOutputStream out)
             throws IOException
        Unpack the specified stream to the specified JAR output stream.
        Parameters:
        in - stream to uncompressed.
        out - JAR output stream of uncompressed data.
        Throws:
        IOException - if I/O exception occurs.
      • unpack

        void unpack​(File in,
                    JarOutputStream out)
             throws IOException
        Unpack the contents of the specified File to the specified JAR output stream.
        Parameters:
        in - file to be uncompressed.
        out - JAR output stream of uncompressed 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.