org.at4j.tar
Class TarSymbolicLinkEntry

java.lang.Object
  extended by org.at4j.archive.AbstractArchiveEntry<TarEntry,TarDirectoryEntry>
      extended by org.at4j.tar.TarEntry
          extended by org.at4j.tar.TarSymbolicLinkEntry
All Implemented Interfaces:
ArchiveEntry<TarEntry,TarDirectoryEntry>, ArchiveSymbolicLinkEntry<TarEntry,TarDirectoryEntry>, Lockable, ReadLockable, Named
Direct Known Subclasses:
UstarSymbolicLinkEntry

public class TarSymbolicLinkEntry
extends TarEntry
implements ArchiveSymbolicLinkEntry<TarEntry,TarDirectoryEntry>

This object represents a Unix v7 Tar symbolic link entry.

Tar entry objects are always immutable.

Since:
1.0
Author:
Karl Gustafsson
See Also:
TarDirectoryEntry, TarFileEntry

Method Summary
protected  UnixEntityMode getDefaultEntityMode()
          Subclasses implement this to return the default Unix entity mode if none is set in the Tar file.
 EntityLocation<?> getLinkTarget()
          Get the target of this symbolic link.
 
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

getDefaultEntityMode

protected UnixEntityMode getDefaultEntityMode()
Description copied from class: TarEntry
Subclasses implement this to return the default Unix entity mode if none is set in the Tar file. This is called from the constructor.

Specified by:
getDefaultEntityMode in class TarEntry
Returns:
The default entity mode for the entry type.

getLinkTarget

public EntityLocation<?> getLinkTarget()
Get the target of this symbolic link. This is either an AbsoluteLocation or a RelativeLocation relative to the symbolic link's parent directory.

Specified by:
getLinkTarget in interface ArchiveSymbolicLinkEntry<TarEntry,TarDirectoryEntry>
Returns:
The target of this symbolic link.