|
Fingerprint_Card
|
This class represents an entry in a Tar archive. It consists of the entry's header, as well as the entry's File. Entries can be instantiated in one of three ways, depending on how they are to be used. More...


Public Member Functions | |
| TarEntry (byte[] headerBuffer) | |
| Construct an entry from an archive's header bytes. File is set to null. | |
| TarEntry (TarHeader header) | |
| Construct a TarEntry using the header header provided. | |
| object | Clone () |
| Clone this tar entry. | |
| override bool | Equals (object obj) |
| Determine if the two entries are equal. Equality is determined by the header names being equal. | |
| override int | GetHashCode () |
| Derive a Hash value for the current Object | |
| bool | IsDescendent (TarEntry toTest) |
| Determine if the given entry is a descendant of this entry. Descendancy is determined by the name of the descendant starting with this entry's name. | |
| void | SetIds (int userId, int groupId) |
| Convenience method to set this entry's group and user ids. | |
| void | SetNames (string userName, string groupName) |
| Convenience method to set this entry's group and user names. | |
| void | GetFileTarHeader (TarHeader header, string file) |
| Fill in a TarHeader with information from a File. | |
| TarEntry[] | GetDirectoryEntries () |
| Get entries for all files present in this entries directory. If this entry doesnt represent a directory zero entries are returned. | |
| void | WriteEntryHeader (byte[] outBuffer) |
| Write an entry's header information to a header buffer. | |
Static Public Member Functions | |
| static TarEntry | CreateTarEntry (string name) |
| Construct an entry with only a name name. This allows the programmer to construct the entry's header "by hand". | |
| static TarEntry | CreateEntryFromFile (string fileName) |
| Construct an entry for a file. File is set to file, and the header is constructed from information from the file. | |
| static void | AdjustEntryName (byte[] buffer, string newName) |
| Convenience method that will modify an entry's name directly in place in an entry header buffer byte array. | |
| static void | NameTarHeader (TarHeader header, string name) |
| Fill in a TarHeader given only the entry's name. | |
Properties | |
| TarHeader | TarHeader [get] |
| Get this entry's header. | |
| string | Name [get, set] |
| Get/Set this entry's name. | |
| int | UserId [get, set] |
| Get/set this entry's user id. | |
| int | GroupId [get, set] |
| Get/set this entry's group id. | |
| string | UserName [get, set] |
| Get/set this entry's user name. | |
| string | GroupName [get, set] |
| Get/set this entry's group name. | |
| DateTime | ModTime [get, set] |
| Get/Set the modification time for this entry. | |
| string | File [get] |
| Get this entry's file. | |
| long | Size [get, set] |
| Get/set this entry's recorded file size. | |
| bool | IsDirectory [get] |
| Return true if this entry represents a directory, false otherwise. | |
Private Member Functions | |
| TarEntry () | |
| Initialise a default instance of TarEntry. | |
Private Attributes | |
| string | file |
| The name of the file this entry represents or null if the entry is not based on a file. | |
| TarHeader | header |
| The entry's header information. | |
This class represents an entry in a Tar archive. It consists of the entry's header, as well as the entry's File. Entries can be instantiated in one of three ways, depending on how they are to be used.
TarEntries that are created from the header bytes read from an archive are instantiated with the TarEntry( byte[] ) constructor. These entries will be used when extracting from or listing the contents of an archive. These entries have their header filled in using the header bytes. They also set the File to null, since they reference an archive entry not a file.
TarEntries that are created from files that are to be written into an archive are instantiated with the CreateEntryFromFile(string) pseudo constructor. These entries have their header filled in using the File's information. They also keep a reference to the File for convenience when writing entries.
Finally, TarEntries can be constructed from nothing but a name. This allows the programmer to construct the entry by hand, for instance when only an InputStream is available for writing to the archive, and the header information is constructed from other information. In this case the header fields are set to defaults and the File is set to null.
|
private |
| ICSharpCode.SharpZipLib.Tar.TarEntry.TarEntry | ( | byte[] | headerBuffer | ) |
Construct an entry from an archive's header bytes. File is set to null.
| headerBuffer | The header bytes from a tar archive entry. |
| ICSharpCode.SharpZipLib.Tar.TarEntry.TarEntry | ( | TarHeader | header | ) |
Construct a TarEntry using the header header provided.
| header | Header details for entry |
|
static |
Convenience method that will modify an entry's name directly in place in an entry header buffer byte array.
| buffer | The buffer containing the entry header to modify. |
| newName | The new name to place into the header buffer. |
| object ICSharpCode.SharpZipLib.Tar.TarEntry.Clone | ( | ) |
Clone this tar entry.


|
static |
Construct an entry for a file. File is set to file, and the header is constructed from information from the file.
| fileName | The file name that the entry represents. |


|
static |
Construct an entry with only a name name. This allows the programmer to construct the entry's header "by hand".
| name | The name to use for the entry |


| override bool ICSharpCode.SharpZipLib.Tar.TarEntry.Equals | ( | object | obj | ) |
Determine if the two entries are equal. Equality is determined by the header names being equal.
| obj | The Object to compare with the current Object. |

| TarEntry[] ICSharpCode.SharpZipLib.Tar.TarEntry.GetDirectoryEntries | ( | ) |
Get entries for all files present in this entries directory. If this entry doesnt represent a directory zero entries are returned.


| void ICSharpCode.SharpZipLib.Tar.TarEntry.GetFileTarHeader | ( | TarHeader | header, |
| string | file ) |
| override int ICSharpCode.SharpZipLib.Tar.TarEntry.GetHashCode | ( | ) |
Derive a Hash value for the current Object
| bool ICSharpCode.SharpZipLib.Tar.TarEntry.IsDescendent | ( | TarEntry | toTest | ) |
Determine if the given entry is a descendant of this entry. Descendancy is determined by the name of the descendant starting with this entry's name.
| toTest | Entry to be checked as a descendent of this. |

|
static |
| void ICSharpCode.SharpZipLib.Tar.TarEntry.SetIds | ( | int | userId, |
| int | groupId ) |
Convenience method to set this entry's group and user ids.
| userId | This entry's new user id. |
| groupId | This entry's new group id. |
| void ICSharpCode.SharpZipLib.Tar.TarEntry.SetNames | ( | string | userName, |
| string | groupName ) |
Convenience method to set this entry's group and user names.
| userName | This entry's new user name. |
| groupName | This entry's new group name. |
| void ICSharpCode.SharpZipLib.Tar.TarEntry.WriteEntryHeader | ( | byte[] | outBuffer | ) |
Write an entry's header information to a header buffer.
| outBuffer | The tar entry header buffer to fill in. |

|
private |
The name of the file this entry represents or null if the entry is not based on a file.
|
private |
The entry's header information.
|
get |
Get this entry's file.
|
getset |
Get/set this entry's group id.
|
getset |
Get/set this entry's group name.
|
get |
Return true if this entry represents a directory, false otherwise.
|
getset |
Get/Set the modification time for this entry.
|
getset |
Get/Set this entry's name.
|
getset |
Get/set this entry's recorded file size.
|
get |
Get this entry's header.
|
getset |
Get/set this entry's user id.
|
getset |
Get/set this entry's user name.