-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #860 from lostmsu/7zSFX
Added support for 7zip SFX archives
- Loading branch information
Showing
7 changed files
with
101 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using SharpCompress.Common; | ||
using SharpCompress.Readers; | ||
|
||
namespace SharpCompress.Archives; | ||
|
||
class AutoArchiveFactory : IArchiveFactory | ||
{ | ||
public string Name => nameof(AutoArchiveFactory); | ||
|
||
public ArchiveType? KnownArchiveType => null; | ||
|
||
public IEnumerable<string> GetSupportedExtensions() => throw new NotSupportedException(); | ||
|
||
public bool IsArchive(Stream stream, string? password = null) => | ||
throw new NotSupportedException(); | ||
|
||
public FileInfo? GetFilePart(int index, FileInfo part1) => throw new NotSupportedException(); | ||
|
||
public IArchive Open(Stream stream, ReaderOptions? readerOptions = null) => | ||
ArchiveFactory.Open(stream, readerOptions); | ||
|
||
public IArchive Open(FileInfo fileInfo, ReaderOptions? readerOptions = null) => | ||
ArchiveFactory.Open(fileInfo, readerOptions); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.