ArchiveFormatDetector
Contents
[
Hide
]Inheritance: java.lang.Object
public final class ArchiveFormatDetector
Detects an archive format and provides other related information.
Constructors
| Constructor | Description |
|---|---|
| ArchiveFormatDetector() | Initializes a new instance of the ArchiveFormatDetector class. |
Methods
| Method | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.InputStream | The 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:
| Parameter | Type | Description |
|---|---|---|
| fileName | java.lang.String | The filename of the archive file. |
Returns: ArchiveFormatInfo - Information about archive format or null if a format was not detected.