Class AbstractArchive<TEntry, TVolume>
- Namespace
- SharpCompress.Archives
- Assembly
- SharpCompress.dll
public abstract class AbstractArchive<TEntry, TVolume> : IArchive, IDisposable where TEntry : IArchiveEntry where TVolume : IVolume
Type Parameters
TEntry
TVolume
- Inheritance
-
AbstractArchive<TEntry, TVolume>
- Implements
-
- Derived
-
- Inherited Members
-
- Extension Methods
-
Properties
Entries
public virtual ICollection<TEntry> Entries { get; }
Property Value
- ICollection<TEntry>
IsComplete
public bool IsComplete { get; }
Property Value
- bool
IsSolid
public virtual bool IsSolid { get; }
Property Value
- bool
ReaderOptions
protected ReaderOptions ReaderOptions { get; }
Property Value
- ReaderOptions
TotalSize
public virtual long TotalSize { get; }
Property Value
- long
TotalUncompressSize
public virtual long TotalUncompressSize { get; }
Property Value
- long
Type
public ArchiveType Type { get; }
Property Value
- ArchiveType
Volumes
public ICollection<TVolume> Volumes { get; }
Property Value
- ICollection<TVolume>
Methods
protected abstract IReader CreateReaderForSolidExtraction()
Returns
- IReader
Dispose()
public virtual void Dispose()
public IReader ExtractAllEntries()
Returns
- IReader
LoadEntries(IEnumerable<TVolume>)
protected abstract IEnumerable<TEntry> LoadEntries(IEnumerable<TVolume> volumes)
Parameters
volumes
IEnumerable<TVolume>
Returns
- IEnumerable<TEntry>
LoadVolumes(IEnumerable<Stream>)
protected abstract IEnumerable<TVolume> LoadVolumes(IEnumerable<Stream> streams)
Parameters
streams
IEnumerable<Stream>
Returns
- IEnumerable<TVolume>
LoadVolumes(FileInfo)
protected abstract IEnumerable<TVolume> LoadVolumes(FileInfo file)
Parameters
file
FileInfo
Returns
- IEnumerable<TVolume>
Events
CompressedBytesRead
public event EventHandler<CompressedBytesReadEventArgs> CompressedBytesRead
Event Type
- EventHandler<CompressedBytesReadEventArgs>
public event EventHandler<ArchiveExtractionEventArgs<IArchiveEntry>> EntryExtractionBegin
Event Type
- EventHandler<ArchiveExtractionEventArgs<IArchiveEntry>>
public event EventHandler<ArchiveExtractionEventArgs<IArchiveEntry>> EntryExtractionEnd
Event Type
- EventHandler<ArchiveExtractionEventArgs<IArchiveEntry>>
public event EventHandler<FilePartExtractionBeginEventArgs> FilePartExtractionBegin
Event Type
- EventHandler<FilePartExtractionBeginEventArgs>