Table of Contents

Class TarArchive

Namespace
SharpCompress.Archive.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>, Options)

protected override IEnumerable<TarVolume> LoadVolumes(IEnumerable<Stream> streams, Options options)

Parameters

streams IEnumerable<Stream>
options Options

Returns

IEnumerable<TarVolume>

LoadVolumes(FileInfo, Options)

protected override IEnumerable<TarVolume> LoadVolumes(FileInfo file, Options options)

Parameters

file FileInfo
options Options

Returns

IEnumerable<TarVolume>

Open(FileInfo)

public static TarArchive Open(FileInfo fileInfo)

Parameters

fileInfo FileInfo

Returns

TarArchive

Open(FileInfo, Options)

public static TarArchive Open(FileInfo fileInfo, Options options)

Parameters

fileInfo FileInfo
options Options

Returns

TarArchive

Open(Stream)

public static TarArchive Open(Stream stream)

Parameters

stream Stream

Returns

TarArchive

Open(Stream, Options)

public static TarArchive Open(Stream stream, Options options)

Parameters

stream Stream
options Options

Returns

TarArchive

Open(string)

public static TarArchive Open(string filePath)

Parameters

filePath string

Returns

TarArchive

Open(string, Options)

public static TarArchive Open(string filePath, Options options)

Parameters

filePath string
options Options

Returns

TarArchive

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

protected override void SaveTo(Stream stream, CompressionInfo compressionInfo, IEnumerable<TarArchiveEntry> oldEntries, IEnumerable<TarArchiveEntry> newEntries)

Parameters

stream Stream
compressionInfo CompressionInfo
oldEntries IEnumerable<TarArchiveEntry>
newEntries IEnumerable<TarArchiveEntry>