ArchiveInstanceInfo

Inheritance: java.lang.Object

public final class ArchiveInstanceInfo

Represents information about the archive instance.

Methods

MethodDescription
areFileNamesEncrypted()Gets a value indicating whether names of entries (files) of the archive are encrypted.
getArchiveFormatInfo(InputStream stream)Gets archive format info.
getArchiveFormatInfo(String fileName)Gets archive format info.
getArchiveInstanceInfo(InputStream stream)Gets archive instance info.
getArchiveInstanceInfo(String fileName)Gets archive instance info.
getFormatInfo()Gets the archive format info.
isContentEncrypted()Gets a value indicating whether content of the archive is encrypted.

areFileNamesEncrypted()

public final boolean areFileNamesEncrypted()

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

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

getArchiveFormatInfo(InputStream stream)

public static ArchiveFormatInfo getArchiveFormatInfo(InputStream stream)

Gets archive format info.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamThe stream of the archive file.

Returns: ArchiveFormatInfo - Information about archive format.

getArchiveFormatInfo(String fileName)

public static ArchiveFormatInfo getArchiveFormatInfo(String fileName)

Gets archive format info.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringThe filename of the archive file.

Returns: ArchiveFormatInfo - Information about archive format.

getArchiveInstanceInfo(InputStream stream)

public static ArchiveInstanceInfo getArchiveInstanceInfo(InputStream stream)

Gets archive instance info.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamThe stream of the archive file.

Returns: ArchiveInstanceInfo - Information about archive instance or null if format was not detected.

getArchiveInstanceInfo(String fileName)

public static ArchiveInstanceInfo getArchiveInstanceInfo(String fileName)

Gets archive instance info.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringThe filename of the archive file.

Returns: ArchiveInstanceInfo - Information about archive instance or null if format was not detected.

getFormatInfo()

public final ArchiveFormatInfo getFormatInfo()

Gets the archive format info.

Returns: ArchiveFormatInfo - the archive format info.

isContentEncrypted()

public final boolean isContentEncrypted()

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

Returns: boolean - a value indicating whether content of the archive is encrypted.