Class GZipArchive
- Namespace
- SharpCompress.Archive.GZip
- Assembly
- SharpCompress.dll
public class GZipArchive : AbstractWritableArchive<GZipArchiveEntry, GZipVolume>, IWritableArchive, IArchive, IDisposable
- Inheritance
-
GZipArchive
- Implements
-
- Inherited Members
-
- Extension Methods
-
Methods
Create()
public static GZipArchive Create()
Returns
- GZipArchive
CreateEntryInternal(string, Stream, long, DateTime?, bool)
protected override GZipArchiveEntry CreateEntryInternal(string filePath, Stream source, long size, DateTime? modified, bool closeStream)
Parameters
filePath
string
source
Stream
size
long
modified
DateTime?
closeStream
bool
Returns
- GZipArchiveEntry
protected override IReader CreateReaderForSolidExtraction()
Returns
- IReader
IsGZipFile(FileInfo)
public static bool IsGZipFile(FileInfo fileInfo)
Parameters
fileInfo
FileInfo
Returns
- bool
IsGZipFile(Stream)
public static bool IsGZipFile(Stream stream)
Parameters
stream
Stream
Returns
- bool
IsGZipFile(string)
public static bool IsGZipFile(string filePath)
Parameters
filePath
string
Returns
- bool
LoadEntries(IEnumerable<GZipVolume>)
protected override IEnumerable<GZipArchiveEntry> LoadEntries(IEnumerable<GZipVolume> volumes)
Parameters
volumes
IEnumerable<GZipVolume>
Returns
- IEnumerable<GZipArchiveEntry>
LoadVolumes(IEnumerable<Stream>, Options)
protected override IEnumerable<GZipVolume> LoadVolumes(IEnumerable<Stream> streams, Options options)
Parameters
streams
IEnumerable<Stream>
options
Options
Returns
- IEnumerable<GZipVolume>
LoadVolumes(FileInfo, Options)
protected override IEnumerable<GZipVolume> LoadVolumes(FileInfo file, Options options)
Parameters
file
FileInfo
options
Options
Returns
- IEnumerable<GZipVolume>
Open(FileInfo)
public static GZipArchive Open(FileInfo fileInfo)
Parameters
fileInfo
FileInfo
Returns
- GZipArchive
Open(FileInfo, Options)
public static GZipArchive Open(FileInfo fileInfo, Options options)
Parameters
fileInfo
FileInfo
options
Options
Returns
- GZipArchive
Open(Stream)
public static GZipArchive Open(Stream stream)
Parameters
stream
Stream
Returns
- GZipArchive
Open(Stream, Options)
public static GZipArchive Open(Stream stream, Options options)
Parameters
stream
Stream
options
Options
Returns
- GZipArchive
Open(string)
public static GZipArchive Open(string filePath)
Parameters
filePath
string
Returns
- GZipArchive
Open(string, Options)
public static GZipArchive Open(string filePath, Options options)
Parameters
filePath
string
options
Options
Returns
- GZipArchive
SaveTo(FileInfo)
public void SaveTo(FileInfo fileInfo)
Parameters
fileInfo
FileInfo
SaveTo(Stream)
public void SaveTo(Stream stream)
Parameters
stream
Stream
SaveTo(Stream, CompressionInfo, IEnumerable<GZipArchiveEntry>, IEnumerable<GZipArchiveEntry>)
protected override void SaveTo(Stream stream, CompressionInfo compressionInfo, IEnumerable<GZipArchiveEntry> oldEntries, IEnumerable<GZipArchiveEntry> newEntries)
Parameters
stream
Stream
compressionInfo
CompressionInfo
oldEntries
IEnumerable<GZipArchiveEntry>
newEntries
IEnumerable<GZipArchiveEntry>
SaveTo(string)
public void SaveTo(string filePath)
Parameters
filePath
string