Interface ZipImporter

    • Method Detail

      • importZip

        @Deprecated
        ZipImporter importZip​(java.util.zip.ZipInputStream stream)
                       throws ArchiveImportException
        Deprecated.
        Use ZipImporter#importFrom(ZipInputStream)
        Imports provided ZipInputStream as a Archive. It remains the responsibility of the caller to close the ZipInputStream.
        Parameters:
        stream - the stream to import
        Returns:
        Archive of the imported Zip
        Throws:
        ArchiveImportException - If an error occurred during the import process
        java.lang.IllegalArgumentException - If no stream is specified
      • importFrom

        ZipImporter importFrom​(java.util.zip.ZipFile file)
                        throws ArchiveImportException
        Imports provided ZipFile as a Archive.
        Parameters:
        file - the file to import
        Returns:
        Archive of the imported Zip
        Throws:
        ArchiveImportException - If an error occurred during the import process
        java.lang.IllegalArgumentException - If no file is specified