The methods of the TarArchive class are listed below. For a complete list of TarArchive class members, see the TarArchive Members topic.
Public Static (Shared) Methods
CreateInputTarArchive | Overloaded.
The InputStream based constructors create a TarArchive for the
purposes of e'x'tracting or lis't'ing 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.
The OutputStream based constructors create a TarArchive for the
purposes of 'c'reating a tar archive. Thus, use these constructors
when you wish to create a new tar archive and write files into it.
|
Public Instance Methods
CloseArchive |
Close the archive. This simply calls the underlying
tar stream's close() method.
|
Equals (inherited from Object) | Select the method name to go to the Microsoft documentation. |
ExtractContents |
Perform the "extract" command and extract the contents of the archive.
|
GetHashCode (inherited from Object) | Select the method name to go to the Microsoft documentation. |
GetType (inherited from Object) | Select the method name to go to the Microsoft documentation. |
ListContents |
Perform the "list" command and list the contents of the archive.
NOTE That this method uses the progress display to actually list
the conents. If the progress display is not set, nothing will be
listed!
|
SetAsciiTranslation |
Set the ascii file translation flag. If ascii file translatio
is true, then the MIME file type will be consulted to determine
if the file is of type 'text/*'. If the MIME type is not found,
then the TransFileTyper is consulted if it is not null. If
either of these two checks indicates the file is an 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, and since most tar implementations
text files compatible with UNIX, and since most tar implementations
|
SetDebug | |
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. Since Java currently provides no means
of determining a user name, user id, group name, or group id for
a given File, TarArchive allows the programmer to specify values
to be used in their place.
|
ToString (inherited from Object) | Select the method name to go to the Microsoft documentation. |
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.
|
Protected Instance Methods
See Also
TarArchive Class | ICSharpCode.SharpZipLib.Tar Namespace