TarArchive overview
Public Static Methods
CreateInputTarArchive | Overloaded. The InputStream based constructors create a TarArchive for the purposes of extracting or listing a tar archive. Thus, use these constructors when you wish to extract files from or list the contents of an existing tar archive. |
CreateOutputTarArchive | Overloaded. Create a TarArchive for writing to, using the default blocking factor |
Public Instance Properties
ApplyUserInfoOverrides | Get or set a value indicating if overrides defined by SetUserInfo should be applied. |
GroupId | Get the archive group id. See ApplyUserInfoOverrides for detail on how to allow setting values on a per entry basis. |
GroupName | Get the archive group name. See ApplyUserInfoOverrides for detail on how to allow setting values on a per entry basis. |
PathPrefix | PathPrefix is added to entry names as they are written if the value is not null. A slash character is appended after PathPrefix |
RecordSize | Get the archive's record size. Because of its history, tar supports the concept of buffered IO consisting of RECORDS of BLOCKS. This allowed tar to match the IO characteristics of the physical device being used. Of course, in the C# world, this makes no sense, WITH ONE EXCEPTION - archives are expected to be properly "blocked". Thus, all of the horrible TarBuffer support boils down to simply getting the "boundaries" correct. |
RootPath | RootPath is removed from entry names if it is found at the beginning of the name. |
UserId | Get the archive user id. See ApplyUserInfoOverrides for detail on how to allow setting values on a per entry basis. |
UserName | Get the archive user name. See ApplyUserInfoOverrides for detail on how to allow setting values on a per entry basis. |
Public Instance Methods
CloseArchive | Close the archive. This simply calls the underlying tar stream's close() method. |
Equals (inherited from Object) |
Determines whether the specified Object is equal to the current Object.
|
ExtractContents | Perform the "extract" command and extract the contents of the archive. |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
|
GetType (inherited from Object) |
Gets the Type of the current instance.
|
ListContents | Perform the "list" command for the archive contents. NOTE That this method uses the progress event to actually list the contents. If the progress display event is not set, nothing will be listed! |
SetAsciiTranslation | Set the ascii file translation flag. If ascii file translation is true, then the file is checked to see if it a binary file or not. If the flag is true and the test indicates it is ascii text file, it will be translated. The translation converts the local operating system's concept of line ends into the UNIX line end, '\n', which is the defacto standard for a TAR archive. This makes text files compatible with UNIX. |
SetKeepOldFiles | Set the flag that determines whether existing files are kept, or overwritten during extraction. |
SetUserInfo | Set user and group information that will be used to fill in the tar archive's entry headers. This information based on that available for the linux operating system, which is not always available on other operating systems. TarArchive allows the programmer to specify values to be used in their place. |
ToString (inherited from Object) |
Returns a String that represents the current Object.
|
WriteEntry | Write an entry to the archive. This method will call the putNextEntry and then write the contents of the entry, and finally call closeEntry() for entries that are files. For directories, it will call putNextEntry(), and then, if the recurse flag is true, process each entry that is a child of the directory. |
Public Instance Events
Protected Instance Constructors
Protected Instance Methods
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
|
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object.
|
OnProgressMessageEvent | Raises the ProgressMessage event |
See Also
TarArchive Class | ICSharpCode.SharpZipLib.Tar Namespace