Package com.aspose.zip
Class ArchiveInstanceInfo
- java.lang.Object
-
- com.aspose.zip.ArchiveInstanceInfo
-
public final class ArchiveInstanceInfo extends Object
Represents information about the archive instance.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareFileNamesEncrypted()Gets a value indicating whether the names of entries (files) of the archive are encrypted.static ArchiveFormatInfogetArchiveFormatInfo(InputStream stream)Gets archive format info.static ArchiveFormatInfogetArchiveFormatInfo(String fileName)Gets archive format info.static ArchiveInstanceInfogetArchiveInstanceInfo(InputStream stream)Gets archive instance info.static ArchiveInstanceInfogetArchiveInstanceInfo(String fileName)Gets archive instance info.ArchiveFormatInfogetFormatInfo()Gets the archive format info.booleanisContentEncrypted()Gets a value indicating whether the content of the archive is encrypted.
-
-
-
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-fileNameis null.com.aspose.ms.System.ArgumentException- ThefileNameis 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-streamis null.com.aspose.ms.System.ArgumentException-streamis 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-fileNameis null.com.aspose.ms.System.ArgumentException- ThefileNameis 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-streamis null.com.aspose.ms.System.ArgumentException-streamis 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.
-
-