ArchiveFormatDetector

Inheritance: java.lang.Object

public final class ArchiveFormatDetector

Detects an archive format and provides other related information.

Constructors

ConstructorDescription
ArchiveFormatDetector()Initializes a new instance of the ArchiveFormatDetector class.

Methods

MethodDescription
getFormatInfo(InputStream stream)Gets format info.
getFormatInfo(String fileName)Gets format info.

ArchiveFormatDetector()

public ArchiveFormatDetector()

Initializes a new instance of the ArchiveFormatDetector class.

getFormatInfo(InputStream stream)

public final ArchiveFormatInfo getFormatInfo(InputStream stream)

Gets format info.

Parameters:

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

Returns: ArchiveFormatInfo - Information about archive format or null if a format was not detected.

getFormatInfo(String fileName)

public final ArchiveFormatInfo getFormatInfo(String fileName)

Gets format info.

Parameters:

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

Returns: ArchiveFormatInfo - Information about archive format or null if a format was not detected.