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: 19.10
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
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodCode exampleExtractToDirectory
Extracts all the files in the archive to the directory provided.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(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
Returns a string that represents the current object.
(Inherited from Object.)
See Also