/*
 * @(#)ArchiveListener.java
 *
 * Copyright (c) JSCAPE LLC.
 *
 * This software is the confidential and proprietary information of
 * JSCAPE. ("Confidential Information").  You shall not disclose such
 * Confidential Information and shall use it only in accordance with
 * the terms of the license agreement you entered into with JSCAPE.
 */
package com.jscape.zip;

import java.util.EventListener;


/**
 * Implements methods for capturing events sourced from Zip and Gzip class.
 *
 * @author Huberth
 * @version 1.0
 */
public interface ArchiveListener
        extends EventListener {

    /**
     * Invoked when a file is compressed.
     *
     * @param evt a <code>ArchiveCompressedEvent</code>
     */
    void compressed(ArchiveCompressedEvent evt);

    /**
     * Invoked when a file is decompressed.
     *
     * @param evt a <code>ArchiveDecompressedEvent</code>
     */
    void decompressed(ArchiveDecompressedEvent evt);

    /**
     * Invoked when file is being compressed.
     *
     * @param evt a <code>CompressionEvent</code>
     */
    void compressionProgress(CompressionEvent evt);

    /**
     * Invoked when a file is being decompressed.
     *
     * @param evt a <code>DecompressionEvent</code>
     */
    void decompressionProgress(DecompressionEvent evt);

}
