public class TarFileEntry extends TarEntry implements ArchiveFileEntry<TarEntry,TarDirectoryEntry>
Tar entry objects are always immutable.
TarDirectoryEntry,
TarSymbolicLinkEntry| Modifier and Type | Method and Description |
|---|---|
long |
getDataSize()
Get the size of the file data for this Tar file entry.
|
protected org.entityfs.entityattrs.unix.UnixEntityMode |
getDefaultEntityMode()
Subclasses implement this to return the default Unix entity mode if none
is set in the Tar file.
|
long |
getSize()
Get the size of the file data for this Tar file entry.
|
long |
getStartPosOfFileData()
Get the start position of file data in the Tar file for this Tar file
entry.
|
org.entityfs.lock.EntityLock |
getWriteLock()
This method returns a dummy lock.
|
boolean |
isWriteLockedByCurrentThread()
This method always returns
true. |
org.entityfs.lock.EntityLock |
lockForWriting()
This method returns a dummy lock.
|
ScatteringByteChannel |
openChannelForRead()
Open a
ScatteringByteChannel that a client can use to read file
data from the Tar file entry. |
org.entityfs.RandomAccess |
openForRandomAccess(org.entityfs.support.io.RandomAccessMode ram) |
InputStream |
openForRead()
Open an
InputStream that a client can use to read file data from
the Tar file entry. |
getChecksum, getEntityMode, getLastModificationTime, getOwnerGid, getOwnerUidgetCollaborator, getLocation, getName, getParent, getReadLock, isReadLockedByCurrentThread, lockForReadingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocation, getParentprotected org.entityfs.entityattrs.unix.UnixEntityMode getDefaultEntityMode()
TarEntrygetDefaultEntityMode in class TarEntrypublic org.entityfs.lock.EntityLock lockForWriting()
throws org.entityfs.exception.LockTimeoutException
lockForWriting in interface org.entityfs.lock.WriteLockableorg.entityfs.exception.LockTimeoutExceptionpublic org.entityfs.lock.EntityLock getWriteLock()
getWriteLock in interface org.entityfs.lock.WriteLockablepublic boolean isWriteLockedByCurrentThread()
true.isWriteLockedByCurrentThread in interface org.entityfs.lock.WriteLockabletrue, always.public ScatteringByteChannel openChannelForRead()
ScatteringByteChannel that a client can use to read file
data from the Tar file entry.openChannelForRead in interface org.entityfs.ReadableFilepublic InputStream openForRead()
InputStream that a client can use to read file data from
the Tar file entry.openForRead in interface org.entityfs.ReadableFilepublic org.entityfs.RandomAccess openForRandomAccess(org.entityfs.support.io.RandomAccessMode ram)
throws org.entityfs.exception.ReadOnlyException
openForRandomAccess in interface org.entityfs.RandomlyAccessibleFileorg.entityfs.exception.ReadOnlyExceptionpublic long getStartPosOfFileData()
Clients seldom have to bother with this.
public long getDataSize()
0 and 8589934591 bytes (~ 8.6 Gb) (inclusive).
This method returns the same value as getSize().
getDataSize in interface org.entityfs.ReadableFilepublic long getSize()
0 and 8589934591 bytes (~ 8.6 Gb) (inclusive).
This method returns the same value as getDataSize().
getSize in interface org.entityfs.ReadableFile