Table of Contents

Class TarArchive

Namespace
SharpCompress.Archives.Tar
Assembly
SharpCompress.dll
public class TarArchive : AbstractWritableArchive<TarArchiveEntry, TarVolume>, IWritableArchive, IArchive, IDisposable
Inheritance
TarArchive
Implements
Inherited Members
Extension Methods

Methods

Create()

public static TarArchive Create()

Returns

TarArchive

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

protected override TarArchiveEntry CreateEntryInternal(string filePath, Stream source, long size, DateTime? modified, bool closeStream)

Parameters

filePath string
source Stream
size long
modified DateTime?
closeStream bool

Returns

TarArchiveEntry

CreateReaderForSolidExtraction()

protected override IReader CreateReaderForSolidExtraction()

Returns

IReader

IsTarFile(FileInfo)

public static bool IsTarFile(FileInfo fileInfo)

Parameters

fileInfo FileInfo

Returns

bool

IsTarFile(Stream)

public static bool IsTarFile(Stream stream)

Parameters

stream Stream

Returns

bool

IsTarFile(string)

public static bool IsTarFile(string filePath)

Parameters

filePath string

Returns

bool

LoadEntries(IEnumerable<TarVolume>)

protected override IEnumerable<TarArchiveEntry> LoadEntries(IEnumerable<TarVolume> volumes)

Parameters

volumes IEnumerable<TarVolume>

Returns

IEnumerable<TarArchiveEntry>

LoadVolumes(IEnumerable<Stream>)

protected override IEnumerable<TarVolume> LoadVolumes(IEnumerable<Stream> streams)

Parameters

streams IEnumerable<Stream>

Returns

IEnumerable<TarVolume>

LoadVolumes(FileInfo)

protected override IEnumerable<TarVolume> LoadVolumes(FileInfo file)

Parameters

file FileInfo

Returns

IEnumerable<TarVolume>

Open(FileInfo, ReaderOptions)

public static TarArchive Open(FileInfo fileInfo, ReaderOptions readerOptions = null)

Parameters

fileInfo FileInfo
readerOptions ReaderOptions

Returns

TarArchive

Open(Stream, ReaderOptions)

public static TarArchive Open(Stream stream, ReaderOptions readerOptions = null)

Parameters

stream Stream
readerOptions ReaderOptions

Returns

TarArchive

Open(string, ReaderOptions)

public static TarArchive Open(string filePath, ReaderOptions readerOptions = null)

Parameters

filePath string
readerOptions ReaderOptions

Returns

TarArchive

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

protected override void SaveTo(Stream stream, WriterOptions options, IEnumerable<TarArchiveEntry> oldEntries, IEnumerable<TarArchiveEntry> newEntries)

Parameters

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