TarArchive Class

The TarArchive class implements the concept of a tar archive. A tar archive is a series of entries, each of which represents a file system object. Each entry in the archive consists of a header record. Directory entries consist only of the header record, and are followed by entries for the directory's contents. File entries consist of a header record followed by the number of records needed to contain the file's contents. All entries are written on record boundaries. Records are 512 bytes long. TarArchives are instantiated in either read or write mode, based upon whether they are instantiated with an InputStream or an OutputStream. Once instantiated TarArchives read/write mode can not be changed. There is currently no support for random access to tar archives. However, it seems that subclassing TarArchive, and using the TarBuffer.getCurrentRecordNum() and TarBuffer.getCurrentBlockNum() methods, this would be rather trvial.

For a list of all members of this type, see TarArchive Members.

System.Object
   TarArchive

[Visual Basic]
Public Class TarArchive
[C#]
public class TarArchive

Requirements

Namespace: ICSharpCode.SharpZipLib.Tar Namespace

Assembly: SharpZipLib.dll

See Also

TarArchive Members | ICSharpCode.SharpZipLib.Tar Namespace