org.at4j.tar
Interface UstarEntry

All Superinterfaces:
ArchiveEntry<TarEntry,TarDirectoryEntry>, Lockable, Named, ReadLockable
All Known Subinterfaces:
PaxEntry
All Known Implementing Classes:
PaxDirectoryEntry, PaxFileEntry, PaxSymbolicLinkEntry, UstarDirectoryEntry, UstarFileEntry, UstarSymbolicLinkEntry

public interface UstarEntry
extends ArchiveEntry<TarEntry,TarDirectoryEntry>

This interface defines the properties that an POSIX 1003.1-1988 (ustar) entry has in addition to the properties inherited from TarEntry.

Since:
1.0
Author:
Karl Gustafsson

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

String getUstarVersion()
Get the Ustar version used to create this entry. This is often 00 or an empty string.


getOwnerUserName

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.

Tar software should let this name take precedence over the numerical owner id from TarEntry.getOwnerUid().

Returns:
The owner's user name.
See Also:
getOwnerGroupName()

getOwnerGroupName

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.

Tar software should let this name take precedence over the numerical group id from TarEntry.getOwnerGid().

Returns:
The owner group name.
See Also:
getOwnerUserName()