All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.plexus.archiver.ArchiveFile Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
package org.codehaus.plexus.archiver;

import java.io.IOException;
import java.io.InputStream;
import java.util.Enumeration;

/**
 * Interface of a zip, or tar file.
 */
public interface ArchiveFile
{

    /**
     * Returns an enumeration with the archive files entries.
     * Any element returned by the enumeration is an instance
     * of {@link org.apache.commons.compress.archivers.ArchiveEntry}.
     */
    public Enumeration getEntries()
        throws IOException;

    /**
     * Returns an {@link InputStream} with the given entries contents.
     * org.apache.commons.compress.archivers.ArchiveEntry
     */
    InputStream getInputStream( org.apache.commons.compress.archivers.ArchiveEntry entry )
        throws IOException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy