Table of Contents

Class AbstractWritableArchive<TEntry, TVolume>

Namespace
SharpCompress.Archives
Assembly
SharpCompress.dll
public abstract class AbstractWritableArchive<TEntry, TVolume> : AbstractArchive<TEntry, TVolume>, IWritableArchive, IArchive, IDisposable where TEntry : IArchiveEntry where TVolume : IVolume

Type Parameters

TEntry
TVolume
Inheritance
AbstractArchive<TEntry, TVolume>
AbstractWritableArchive<TEntry, TVolume>
Implements
Derived
Inherited Members
Extension Methods

Properties

Entries

public override ICollection<TEntry> Entries { get; }

Property Value

ICollection<TEntry>

Methods

AddEntry(string, Stream, bool, long, DateTime?)

public TEntry AddEntry(string key, Stream source, bool closeStream, long size = 0, DateTime? modified = null)

Parameters

key string
source Stream
closeStream bool
size long
modified DateTime?

Returns

TEntry

AddEntry(string, Stream, long, DateTime?)

public TEntry AddEntry(string key, Stream source, long size = 0, DateTime? modified = null)

Parameters

key string
source Stream
size long
modified DateTime?

Returns

TEntry

CreateEntry(string, Stream, long, DateTime?, bool)

protected TEntry CreateEntry(string key, Stream source, long size, DateTime? modified, bool closeStream)

Parameters

key string
source Stream
size long
modified DateTime?
closeStream bool

Returns

TEntry

CreateEntryInternal(string, Stream, long, DateTime?, bool)

protected abstract TEntry CreateEntryInternal(string key, Stream source, long size, DateTime? modified, bool closeStream)

Parameters

key string
source Stream
size long
modified DateTime?
closeStream bool

Returns

TEntry

Dispose()

public override void Dispose()

RemoveEntry(TEntry)

public void RemoveEntry(TEntry entry)

Parameters

entry TEntry

SaveTo(Stream, WriterOptions)

public void SaveTo(Stream stream, WriterOptions options)

Parameters

stream Stream
options WriterOptions

SaveTo(Stream, WriterOptions, IEnumerable<TEntry>, IEnumerable<TEntry>)

protected abstract void SaveTo(Stream stream, WriterOptions options, IEnumerable<TEntry> oldEntries, IEnumerable<TEntry> newEntries)

Parameters

stream Stream
options WriterOptions
oldEntries IEnumerable<TEntry>
newEntries IEnumerable<TEntry>