org.at4j.tar
Class UstarSymbolicLinkEntry
java.lang.Object
org.at4j.archive.AbstractArchiveEntry<TarEntry,TarDirectoryEntry>
org.at4j.tar.TarEntry
org.at4j.tar.TarSymbolicLinkEntry
org.at4j.tar.UstarSymbolicLinkEntry
- All Implemented Interfaces:
- ArchiveEntry<TarEntry,TarDirectoryEntry>, ArchiveSymbolicLinkEntry<TarEntry,TarDirectoryEntry>, UstarEntry, Lockable, ReadLockable, Named
- Direct Known Subclasses:
- PaxSymbolicLinkEntry
public class UstarSymbolicLinkEntry
- extends TarSymbolicLinkEntry
- implements UstarEntry
This object represents a symbolic link entry created with a POSIX-1.1988
(ustar) compatible version of tar.
Tar entry objects are always immutable.
- Since:
- 1.0
- Author:
- Karl Gustafsson
- See Also:
UstarDirectoryEntry
,
UstarFileEntry
Method Summary |
String |
getOwnerGroupName()
Get the name of the group that owned the file system entity that was
added to the Tar archive to make this Tar entry. |
String |
getOwnerUserName()
Get the user name for the owner of the file system entity that was added
to the Tar archive to make this Tar entry. |
String |
getUstarVersion()
Get the Ustar version used to create this entry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getUstarVersion
public String getUstarVersion()
- Description copied from interface:
UstarEntry
- Get the Ustar version used to create this entry. This is often
00
or an empty string.
- Specified by:
getUstarVersion
in interface UstarEntry
getOwnerUserName
public String getOwnerUserName()
- Description copied from interface:
UstarEntry
- Get the user name for the owner of the file system entity that was added
to the Tar archive to make this Tar entry.
Tar software should let this name take precedence over the numerical
owner id from TarEntry.getOwnerUid()
.
- Specified by:
getOwnerUserName
in interface UstarEntry
- Returns:
- The owner's user name.
- See Also:
UstarEntry.getOwnerGroupName()
getOwnerGroupName
public String getOwnerGroupName()
- Description copied from interface:
UstarEntry
- Get the name of the group that owned the file system entity that was
added to the Tar archive to make this Tar entry.
Tar software should let this name take precedence over the numerical
group id from TarEntry.getOwnerGid()
.
- Specified by:
getOwnerGroupName
in interface UstarEntry
- Returns:
- The owner group name.
- See Also:
UstarEntry.getOwnerUserName()