org.at4j.tar
Class TarSymbolicLinkEntry
java.lang.Object
org.at4j.archive.AbstractArchiveEntry<TarEntry,TarDirectoryEntry>
org.at4j.tar.TarEntry
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.