Class ArchiveFactory
- Namespace
- SharpCompress.Archives
- Assembly
- SharpCompress.dll
public class ArchiveFactory
- Inheritance
-
ArchiveFactory
- Inherited Members
-
Constructors
ArchiveFactory()
Methods
Create(ArchiveType)
public static IWritableArchive Create(ArchiveType type)
Parameters
type
ArchiveType
Returns
- IWritableArchive
Open(FileInfo, ReaderOptions)
public static IArchive Open(FileInfo fileInfo, ReaderOptions options = null)
Parameters
fileInfo
FileInfo
options
ReaderOptions
Returns
- IArchive
Open(Stream, ReaderOptions)
public static IArchive Open(Stream stream, ReaderOptions readerOptions = null)
Parameters
stream
Stream
readerOptions
ReaderOptions
Returns
- IArchive
Open(string, ReaderOptions)
public static IArchive Open(string filePath, ReaderOptions options = null)
Parameters
filePath
string
options
ReaderOptions
Returns
- IArchive
public static void WriteToDirectory(string sourceArchive, string destinationDirectory, ExtractionOptions options = null)
Parameters
sourceArchive
string
destinationDirectory
string
options
ExtractionOptions