ArchiveFactory
Inheritance: java.lang.Object
public final class ArchiveFactory
Detects the archive format and creates the appropriate IArchive object according to the type of archive.
Methods
Method | Description |
---|---|
getArchive(InputStream stream) | Detects the archive format and creates the appropriate IArchive object according to the type of archive specified by the given stream. |
getArchive(String path) | Detects the archive format and creates the appropriate IArchive object according to the type of archive specified by the given path. |
getArchive(InputStream stream)
public static IArchive getArchive(InputStream stream)
Detects the archive format and creates the appropriate IArchive object according to the type of archive specified by the given stream.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.InputStream | The stream containing the archive data. It must bee seekable. |
Returns: IArchive - An IArchive object representing the archive.
getArchive(String path)
public static IArchive getArchive(String path)
Detects the archive format and creates the appropriate IArchive object according to the type of archive specified by the given path.
Parameters:
Parameter | Type | Description |
---|---|---|
path | java.lang.String | The path to the archive to be analyzed. |
Returns: IArchive - An IArchive object representing the archive.