|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.at4j.archive.AbstractArchiveEntry<TarEntry,TarDirectoryEntry>
org.at4j.tar.TarEntry
public abstract class TarEntry
This is the abstract base class for a Tar entry. It contains the metadata that is present in all Tar entries regardless of their types and the version of the Tar software that created them.
Tar entry objects are always immutable.
Method Summary | |
---|---|
int |
getChecksum()
Get the entry's checksum. |
protected abstract UnixEntityMode |
getDefaultEntityMode()
Subclasses implement this to return the default Unix entity mode if none is set in the Tar file. |
UnixEntityMode |
getEntityMode()
Get the Unix entity mode for the entry. |
Date |
getLastModificationTime()
Get the time of last modification for the file system entity that was added to the Tar file to create this Tar entry. |
int |
getOwnerGid()
Get the owner group id for the entry. |
int |
getOwnerUid()
Get the owner user id for the entry. |
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 |
Method Detail |
---|
protected abstract UnixEntityMode getDefaultEntityMode()
public UnixEntityMode getEntityMode()
public int getOwnerUid()
0
and 2097151
. The actual range of the property
depends on the Tar software and the operating system platform used when
creating the archive.
Some entry versions support expressing the entry owner's user name in text. Software that interpret Tar file should let that text value take precedence over this numerical value.
getOwnerGid()
public int getOwnerGid()
0
and 2097151
. The actual range of the property
depends on the Tar software and the operating system platform used when
creating the archive.
Some entry versions support expressing the entry owner's group name in text. Software that interpret Tar file should let that text value take precedence over this numerical value.
getOwnerUid()
public Date getLastModificationTime()
The time zone for the timestamp is UTC.
public int getChecksum()
This is a value in the range of 0
and 130560
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |