Class GZipArchive
- Namespace
- SharpCompress.Archives.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>)
protected override IEnumerable<GZipVolume> LoadVolumes(IEnumerable<Stream> streams)
Parameters
streams
IEnumerable<Stream>
Returns
- IEnumerable<GZipVolume>
LoadVolumes(FileInfo)
protected override IEnumerable<GZipVolume> LoadVolumes(FileInfo file)
Parameters
file
FileInfo
Returns
- IEnumerable<GZipVolume>
Open(FileInfo, ReaderOptions)
public static GZipArchive Open(FileInfo fileInfo, ReaderOptions readerOptions = null)
Parameters
fileInfo
FileInfo
readerOptions
ReaderOptions
Returns
- GZipArchive
Open(Stream, ReaderOptions)
public static GZipArchive Open(Stream stream, ReaderOptions readerOptions = null)
Parameters
stream
Stream
readerOptions
ReaderOptions
Returns
- GZipArchive
Open(string, ReaderOptions)
public static GZipArchive Open(string filePath, ReaderOptions readerOptions = null)
Parameters
filePath
string
readerOptions
ReaderOptions
Returns
- GZipArchive
SaveTo(FileInfo)
public void SaveTo(FileInfo fileInfo)
Parameters
fileInfo
FileInfo
SaveTo(Stream, WriterOptions, IEnumerable<GZipArchiveEntry>, IEnumerable<GZipArchiveEntry>)
protected override void SaveTo(Stream stream, WriterOptions options, IEnumerable<GZipArchiveEntry> oldEntries, IEnumerable<GZipArchiveEntry> newEntries)
Parameters
stream
Stream
options
WriterOptions
oldEntries
IEnumerable<GZipArchiveEntry>
newEntries
IEnumerable<GZipArchiveEntry>
SaveTo(string)
public void SaveTo(string filePath)
Parameters
filePath
string