TarArchive Class

This class represents tar archive file. Use it to compose, extract, or update tar archives.
Inheritance Hierarchy
SystemObject
  Aspose.Zip.TarTarArchive

Namespace:  Aspose.Zip.Tar
Assembly:  Aspose.Zip (in Aspose.Zip.dll) Version: 20.3
Syntax
public class TarArchive : IDisposable

The TarArchive type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleTarArchive
Initializes a new instance of the TarArchive class.
Public methodCode exampleTarArchive(Stream)
Initializes a new instance of the Archive class and composes entries list can be extracted from the archive.
Public methodCode exampleTarArchive(String)
Initializes a new instance of the TarArchive class and composes entries list can be extracted from the archive.
Properties
  NameDescription
Public propertyEntries
Gets entries of TarEntry type constituting the archive.
Methods
  NameDescription
Public methodCode exampleCreateEntries(DirectoryInfo, Boolean)
Adds to the archive all the files and directories recursively in the directory given.
Public methodCode exampleCreateEntries(String, Boolean)
Adds to the archive all the files and directories recursively in the directory given.
Public methodCode exampleCreateEntry(String, FileInfo, Boolean)
Create single entry within the archive.
Public methodCode exampleCreateEntry(String, Stream, FileSystemInfo)
Create single entry within the archive.
Public methodCode exampleCreateEntry(String, String, Boolean)
Create single entry within the archive.
Public methodCode exampleDeleteEntry(Int32)
Removes the entry from the entries list by index.
Public methodCode exampleDeleteEntry(TarEntry)
Removes the first occurrence of a specific entry from the entries list.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals (Inherited from Object.)
Public methodCode exampleExtractToDirectory
Extracts all the files in the archive to the directory provided.
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodCode exampleSave(Stream)
Saves archive to the stream provided.
Public methodCode exampleSave(String)
Saves archive to destination file provided.
Public methodToString (Inherited from Object.)
See Also