public class TarDriverEntry extends TarArchiveEntry implements FsArchiveEntry, Pool.Releasable<IOException>
FsArchiveEntry
interface.Entry.Access, Entry.Size, Entry.Type
DEFAULT_DIR_MODE, DEFAULT_FILE_MODE, MAX_NAMELEN, MILLIS_PER_SECOND
ALL_ACCESS_SET, ALL_SIZE_SET, ALL_TYPE_SET, DIRECTORY_TYPE_SET, FILE_TYPE_SET, SPECIAL_TYPE_SET, SYMLINK_TYPE_SET, UNKNOWN
ATIMELEN_GNU, CHKSUM_OFFSET, CHKSUMLEN, CTIMELEN_GNU, DEFAULT_BLKSIZE, DEFAULT_RCDSIZE, DEVLEN, FORMAT_OLDGNU, FORMAT_POSIX, GIDLEN, GNAMELEN, GNU_LONGLINK, ISEXTENDEDLEN_GNU, ISEXTENDEDLEN_GNU_SPARSE, LF_BLK, LF_CHR, LF_CONTIG, LF_DIR, LF_FIFO, LF_GNUTYPE_LONGLINK, LF_GNUTYPE_LONGNAME, LF_GNUTYPE_SPARSE, LF_LINK, LF_NORMAL, LF_OLDNORM, LF_PAX_EXTENDED_HEADER_LC, LF_PAX_EXTENDED_HEADER_UC, LF_PAX_GLOBAL_EXTENDED_HEADER, LF_SYMLINK, LONGNAMESLEN_GNU, MAGIC_ANT, MAGIC_GNU, MAGIC_OFFSET, MAGIC_POSIX, MAGICLEN, MAXID, MAXSIZE, MODELEN, MODTIMELEN, NAMELEN, OFFSETLEN_GNU, PAD2LEN_GNU, PREFIXLEN, REALSIZELEN_GNU, SIZELEN, SPARSELEN_GNU, SPARSELEN_GNU_SPARSE, UIDLEN, UNAMELEN, VERSION_ANT, VERSION_GNU_SPACE, VERSION_GNU_ZERO, VERSION_OFFSET, VERSION_POSIX, VERSIONLEN
SIZE_UNKNOWN
Modifier | Constructor and Description |
---|---|
|
TarDriverEntry(String name) |
protected |
TarDriverEntry(String name,
TarArchiveEntry template) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
Date |
getModTime() |
long |
getSize() |
long |
getSize(Entry.Size type)
Returns the size of the given type for this entry.
|
long |
getTime(Entry.Access type)
Returns the time of the given access type for this entry.
|
Entry.Type |
getType()
Returns the type of this archive entry.
|
int |
hashCode() |
void |
release()
Releases this resource to its pool.
|
void |
setModTime(Date time) |
void |
setModTime(long time) |
boolean |
setSize(Entry.Size type,
long size)
Sets the size of the given type for this archive entry.
|
void |
setSize(long size) |
boolean |
setTime(Entry.Access type,
long time)
Sets the last access time of the given type for this archive entry.
|
String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
equals, getDevMajor, getDevMinor, getDirectoryEntries, getFile, getGroupId, getGroupName, getLastModifiedDate, getLinkName, getMode, getName, getRealSize, getUserId, getUserName, isBlockDevice, isCharacterDevice, isCheckSumOK, isDescendent, isDirectory, isExtended, isFIFO, isFile, isGlobalPaxHeader, isGNULongLinkEntry, isGNULongNameEntry, isGNUSparse, isLink, isPaxHeader, isSymbolicLink, parseTarHeader, parseTarHeader, setDevMajor, setDevMinor, setGroupId, setGroupName, setIds, setLinkName, setMode, setName, setNames, setUserId, setUserName, writeEntryHeader, writeEntryHeader
public TarDriverEntry(String name)
protected TarDriverEntry(String name, TarArchiveEntry template)
public boolean equals(Object that)
equals
in class TarArchiveEntry
public Date getModTime()
getModTime
in class TarArchiveEntry
public long getSize()
getSize
in interface ArchiveEntry
getSize
in class TarArchiveEntry
public long getSize(Entry.Size type)
Entry
Entry.Type.FILE
entries.getSize
in interface Entry
type
- the type of the size to return.Entry.UNKNOWN
if not specified or the type is unsupported.public long getTime(Entry.Access type)
Entry
public Entry.Type getType()
FsArchiveEntry
getType
in interface FsArchiveEntry
public int hashCode()
hashCode
in class TarArchiveEntry
public void release() throws IOException
Pool.Releasable
release
in interface Pool.Releasable<IOException>
IOException
public void setModTime(Date time)
setModTime
in class TarArchiveEntry
public void setModTime(long time)
setModTime
in class TarArchiveEntry
public boolean setSize(Entry.Size type, long size)
MutableEntry
setSize
in interface MutableEntry
type
- the size type.size
- the size of the given size type for this archive entry in
bytes or
-1.false
if and only if setting a size for the given type
is unsupported.public void setSize(long size)
setSize
in class TarArchiveEntry
public boolean setTime(Entry.Access type, long time)
MutableEntry
setTime
in interface MutableEntry
type
- the access type.time
- the last time of the given access type for this archive
entry in milliseconds since the epoch or
-1.false
if and only if setting a time for the given type
is unsupported.Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.