TrueZIP 6.8.1

de.schlichtherle.io.archive.tar
Class TarEntry

java.lang.Object
  extended by org.apache.tools.tar.TarEntry
      extended by de.schlichtherle.io.archive.tar.TarEntry
All Implemented Interfaces:
ArchiveEntry, org.apache.tools.tar.TarConstants

public class TarEntry
extends org.apache.tools.tar.TarEntry
implements ArchiveEntry

An entry in a TAR archive which implements the ArchiveEntry interface.

Since:
TrueZIP 6.0
Version:
$Id: TarEntry.java,v 1.4 2010/08/20 13:09:44 christian_schlichtherle Exp $
Author:
Christian Schlichtherle

Field Summary
 
Fields inherited from class org.apache.tools.tar.TarEntry
DEFAULT_DIR_MODE, DEFAULT_FILE_MODE, MAX_NAMELEN, MILLIS_PER_SECOND
 
Fields inherited from interface de.schlichtherle.io.archive.spi.ArchiveEntry
SEPARATOR, SEPARATOR_CHAR, UNKNOWN
 
Fields inherited from interface org.apache.tools.tar.TarConstants
CHKSUMLEN, DEVLEN, GIDLEN, GNAMELEN, GNU_LONGLINK, GNU_TMAGIC, LF_BLK, LF_CHR, LF_CONTIG, LF_DIR, LF_FIFO, LF_GNUTYPE_LONGNAME, LF_LINK, LF_NORMAL, LF_OLDNORM, LF_SYMLINK, MAGICLEN, MAXSIZE, MODELEN, MODTIMELEN, NAMELEN, SIZELEN, TMAGIC, UIDLEN, UNAMELEN
 
Constructor Summary
TarEntry(String entryName)
           
TarEntry(org.apache.tools.tar.TarEntry blueprint)
           
TarEntry(org.apache.tools.tar.TarEntry blueprint, File file)
           
 
Method Summary
 Icon getClosedIcon()
          Returns the icon that FileSystemView and FileTreeCellRenderer should display for this entry if it is closed/collapsed in the view.
 ArchiveEntryMetaData getMetaData()
          Returns the meta data for this archive entry.
 Icon getOpenIcon()
          Returns the icon that FileTreeCellRenderer should display for this entry if it is open/expanded in the view.
 long getTime()
          Returns the last modification time of this archive entry since the epoch, or UNKNOWN if not specified.
 void setMetaData(ArchiveEntryMetaData metaData)
          Sets the meta data for this archive entry.
 void setTime(long time)
          Sets the last modification time of this archive entry.
 
Methods inherited from class org.apache.tools.tar.TarEntry
equals, equals, getDirectoryEntries, getFile, getGroupId, getGroupName, getLinkName, getMode, getModTime, getName, getSize, getUserId, getUserName, hashCode, isDescendent, isDirectory, isGNULongNameEntry, parseTarHeader, setGroupId, setGroupName, setIds, setMode, setModTime, setModTime, setName, setNames, setSize, setUserId, setUserName, writeEntryHeader
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.schlichtherle.io.archive.spi.ArchiveEntry
getName, getSize, isDirectory
 

Constructor Detail

TarEntry

public TarEntry(String entryName)

TarEntry

public TarEntry(org.apache.tools.tar.TarEntry blueprint)

TarEntry

public TarEntry(org.apache.tools.tar.TarEntry blueprint,
                File file)
Method Detail

getTime

public long getTime()
Description copied from interface: ArchiveEntry
Returns the last modification time of this archive entry since the epoch, or UNKNOWN if not specified.

Specified by:
getTime in interface ArchiveEntry
See Also:
ArchiveEntry.setTime(long)

setTime

public void setTime(long time)
Description copied from interface: ArchiveEntry
Sets the last modification time of this archive entry.

Specified by:
setTime in interface ArchiveEntry
Parameters:
time - The last modification time of this archive entry in milliseconds since the epoch.
See Also:
ArchiveEntry.getTime()

getOpenIcon

public Icon getOpenIcon()
Description copied from interface: ArchiveEntry
Returns the icon that FileTreeCellRenderer should display for this entry if it is open/expanded in the view. If null is returned, a default icon will be used, depending on the type of this entry and its state in the view.

Specified by:
getOpenIcon in interface ArchiveEntry

getClosedIcon

public Icon getClosedIcon()
Description copied from interface: ArchiveEntry
Returns the icon that FileSystemView and FileTreeCellRenderer should display for this entry if it is closed/collapsed in the view. If null is returned, a default icon will be used, depending on the type of this entry and its state in the view.

Specified by:
getClosedIcon in interface ArchiveEntry

getMetaData

public ArchiveEntryMetaData getMetaData()
Description copied from interface: ArchiveEntry
Returns the meta data for this archive entry. The default value is null.

Specified by:
getMetaData in interface ArchiveEntry

setMetaData

public void setMetaData(ArchiveEntryMetaData metaData)
Description copied from interface: ArchiveEntry
Sets the meta data for this archive entry.

Specified by:
setMetaData in interface ArchiveEntry
Parameters:
metaData - The meta data - may not be null.

TrueZIP 6.8.1

Copyright © 2005-2010 Schlichtherle IT Services. All Rights Reserved.