Class ArchiveInstanceInfo


  • public final class ArchiveInstanceInfo
    extends Object

    Represents information about the archive instance.

    • Method Detail

      • getArchiveFormatInfo

        public static ArchiveFormatInfo getArchiveFormatInfo​(String fileName)

        Gets archive format info.

        Parameters:
        fileName - The filename of the archive file.
        Returns:
        Information about archive format.
        Throws:
        com.aspose.ms.System.ArgumentNullException - fileName is null.
        com.aspose.ms.System.ArgumentException - The fileName is empty, contains only white spaces, or contains invalid characters.
      • getArchiveFormatInfo

        public static ArchiveFormatInfo getArchiveFormatInfo​(InputStream stream)

        Gets archive format info.

        Parameters:
        stream - The stream of the archive file.
        Returns:
        Information about archive format.
        Throws:
        com.aspose.ms.System.ArgumentNullException - stream is null.
        com.aspose.ms.System.ArgumentException - stream is not seekable.
      • getArchiveInstanceInfo

        public static ArchiveInstanceInfo getArchiveInstanceInfo​(String fileName)

        Gets archive instance info.

        Parameters:
        fileName - The filename of the archive file.
        Returns:
        Information about archive instance or null if format was not detected.
        Throws:
        com.aspose.ms.System.ArgumentNullException - fileName is null.
        com.aspose.ms.System.ArgumentException - The fileName is empty, contains only white spaces, or contains invalid characters.
      • getArchiveInstanceInfo

        public static ArchiveInstanceInfo getArchiveInstanceInfo​(InputStream stream)

        Gets archive instance info.

        Parameters:
        stream - The stream of the archive file.
        Returns:
        Information about archive instance or null if format was not detected.
        Throws:
        com.aspose.ms.System.ArgumentNullException - stream is null.
        com.aspose.ms.System.ArgumentException - stream is not seekable.
      • getFormatInfo

        public final ArchiveFormatInfo getFormatInfo()

        Gets the archive format info.

        Returns:
        the archive format info.
      • isContentEncrypted

        public final boolean isContentEncrypted()

        Gets a value indicating whether the content of the archive is encrypted.

        Returns:
        a value indicating whether the content of the archive is encrypted.
      • areFileNamesEncrypted

        public final boolean areFileNamesEncrypted()

        Gets a value indicating whether the names of entries (files) of the archive are encrypted.

        Returns:
        a value indicating whether the names of entries (files) of the archive are encrypted.