public class TarDriverEntry extends org.apache.commons.compress.archivers.tar.TarArchiveEntry implements FsArchiveEntry, Pool.Releasable<IOException>
FsArchiveEntry
interface.Entry.Access, Entry.Size, Entry.TypeDEFAULT_DIR_MODE, DEFAULT_FILE_MODE, MAX_NAMELEN, MILLIS_PER_SECONDALL_ACCESS_SET, ALL_SIZE_SET, ALL_TYPE_SET, DIRECTORY_TYPE_SET, FILE_TYPE_SET, SPECIAL_TYPE_SET, SYMLINK_TYPE_SET, UNKNOWNATIMELEN_GNU, CHKSUM_OFFSET, CHKSUMLEN, CTIMELEN_GNU, 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_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| Modifier | Constructor and Description |
|---|---|
|
TarDriverEntry(String name) |
protected |
TarDriverEntry(String name,
org.apache.commons.compress.archivers.tar.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, isGNULongNameEntry, isGNUSparse, isLink, isPaxHeader, isSymbolicLink, parseTarHeader, parseTarHeader, setDevMajor, setDevMinor, setGroupId, setGroupName, setIds, setLinkName, setMode, setName, setNames, setUserId, setUserName, writeEntryHeader, writeEntryHeaderpublic TarDriverEntry(String name)
protected TarDriverEntry(String name, org.apache.commons.compress.archivers.tar.TarArchiveEntry template)
public boolean equals(Object that)
equals in class org.apache.commons.compress.archivers.tar.TarArchiveEntrypublic Date getModTime()
getModTime in class org.apache.commons.compress.archivers.tar.TarArchiveEntrypublic long getSize()
getSize in interface org.apache.commons.compress.archivers.ArchiveEntrygetSize in class org.apache.commons.compress.archivers.tar.TarArchiveEntrypublic long getSize(Entry.Size type)
EntryEntry.Type.FILE entries.getSize in interface Entrytype - the type of the size to return.Entry.UNKNOWN if not specified or the type is unsupported.public long getTime(Entry.Access type)
Entrypublic Entry.Type getType()
FsArchiveEntrygetType in interface FsArchiveEntrypublic int hashCode()
hashCode in class org.apache.commons.compress.archivers.tar.TarArchiveEntrypublic void release()
throws IOException
Pool.ReleasableIllegalStateException upon the
conditions explained below.release in interface Pool.Releasable<IOException>IOExceptionpublic void setModTime(Date time)
setModTime in class org.apache.commons.compress.archivers.tar.TarArchiveEntrypublic void setModTime(long time)
setModTime in class org.apache.commons.compress.archivers.tar.TarArchiveEntrypublic boolean setSize(Entry.Size type, long size)
MutableEntrysetSize in interface MutableEntrytype - 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 org.apache.commons.compress.archivers.tar.TarArchiveEntrypublic boolean setTime(Entry.Access type, long time)
MutableEntrysetTime in interface MutableEntrytype - 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-2013 Schlichtherle IT Services. All Rights Reserved.