org.at4j.tar
Class UstarSymbolicLinkEntry

java.lang.Object
  extended by org.at4j.archive.AbstractArchiveEntry<TarEntry,TarDirectoryEntry>
      extended by org.at4j.tar.TarEntry
          extended by org.at4j.tar.TarSymbolicLinkEntry
              extended by 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 org.at4j.tar.TarSymbolicLinkEntry
getDefaultEntityMode, getLinkTarget
 
Methods inherited from class org.at4j.tar.TarEntry
getChecksum, getEntityMode, getLastModificationTime, getOwnerGid, getOwnerUid
 
Methods inherited from class org.at4j.archive.AbstractArchiveEntry
getCollaborator, getLocation, getName, getParent, getReadLock, isReadLockedByCurrentThread, lockForReading
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.at4j.archive.ArchiveEntry
getLocation, getParent
 
Methods inherited from interface org.entityfs.Named
getName
 
Methods inherited from interface org.entityfs.lock.ReadLockable
getReadLock, isReadLockedByCurrentThread, lockForReading
 

Method Detail

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()