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

net.sf.sevenzipjbinding.simple.ISimpleInArchive Maven / Gradle / Ivy

The newest version!
package net.sf.sevenzipjbinding.simple;

import net.sf.sevenzipjbinding.ISevenZipInArchive;
import net.sf.sevenzipjbinding.SevenZipException;

/**
 * Simplified interface for C++ IInArchive. For binding of original 7-Zip C++ interface see
 * {@link ISevenZipInArchive}.
 * 
 * 
 * @author Boris Brodski
 * @version 4.65-1
 */
public interface ISimpleInArchive {
	/**
	 * Close archive. No more archive operations are possible.
* Note: This method should be always called to free system resources. * * @throws SevenZipException * intern error occurs. See {@link SevenZipException#getMessage()} for details. */ public void close() throws SevenZipException; /** * Return count of items in archive. * * @return count of item in archive. * * @throws SevenZipException * error occurs. See {@link SevenZipException#getMessage()} for details. */ public int getNumberOfItems() throws SevenZipException; /** * Return array of archive items with {@link #getNumberOfItems()} elements. * * @return array of archive items * @throws SevenZipException * error occurs. See {@link SevenZipException#getMessage()} for details. */ public ISimpleInArchiveItem[] getArchiveItems() throws SevenZipException; /** * Return a simple representation of the archive item with index index. * * @param index * index of the archive item to return * @return corresponding instance of {@link ISimpleInArchiveItem} * @throws SevenZipException * error occurs. See {@link SevenZipException#getMessage()} for details. */ public ISimpleInArchiveItem getArchiveItem(int index) throws SevenZipException; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy