TrueZIP 6.8

de.schlichtherle.io.archive.zip
Class ZipEntry

java.lang.Object
  extended by de.schlichtherle.util.zip.ZipEntry
      extended by de.schlichtherle.io.archive.zip.ZipEntry
All Implemented Interfaces:
ArchiveEntry, Cloneable
Direct Known Subclasses:
JarEntry, Zip32Entry

public class ZipEntry
extends ZipEntry
implements ArchiveEntry

An adapter class to make the ZipEntry class implement the ArchiveEntry interface.

Since:
TrueZIP 6.0
Version:
$Id: ZipEntry.java,v 1.3 2010/08/16 10:55:44 christian_schlichtherle Exp $
Author:
Christian Schlichtherle
See Also:
ZipDriver

Field Summary
static byte UNKNOWN
          The unknown value for numeric properties.
 
Fields inherited from class de.schlichtherle.util.zip.ZipEntry
DEFLATED, MIN_DOS_TIME, PLATFORM_FAT, PLATFORM_UNIX, STORED
 
Fields inherited from interface de.schlichtherle.io.archive.spi.ArchiveEntry
SEPARATOR, SEPARATOR_CHAR
 
Constructor Summary
ZipEntry(String entryName)
           
ZipEntry(ZipEntry blueprint)
           
 
Method Summary
 Object clone()
          Throws an UnsupportedOperationException.
 Icon getClosedIcon()
          Returns the icon that FileSystemView and FileTreeCellRenderer should display for this entry if it is closed/collapsed in the view.
protected  DateTimeConverter getDateTimeConverter()
          Returns a DateTimeConverter for the conversion of Java time to DOS date/time fields and vice versa.
 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.
 void setMetaData(ArchiveEntryMetaData metaData)
          Sets the meta data for this archive entry.
protected  void setName(String name)
          Resets the ZIP entry name.
 
Methods inherited from class de.schlichtherle.util.zip.ZipEntry
dos2javaTime, getComment, getCompressedSize, getCrc, getDosTime, getExtra, getMethod, getName, getPlatform, getSize, getTime, isDirectory, java2dosTime, setComment, setCompressedSize, setCrc, setDosTime, setExtra, setMethod, setPlatform, setSize, setTime, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.schlichtherle.io.archive.spi.ArchiveEntry
getName, getSize, getTime, isDirectory, setTime
 

Field Detail

UNKNOWN

public static final byte UNKNOWN
The unknown value for numeric properties.

See Also:
Constant Field Values
Constructor Detail

ZipEntry

public ZipEntry(String entryName)

ZipEntry

public ZipEntry(ZipEntry blueprint)
Method Detail

clone

public Object clone()
Throws an UnsupportedOperationException.

Overrides:
clone in class ZipEntry
Throws:
UnsupportedOperationException - Cloning doesn't work with ArchiveEntryMetaData and is not required for ArchiveDriver's anyway.

setName

protected void setName(String name)
Description copied from class: ZipEntry
Resets the ZIP entry name. This method can be called at most once and only if this entry has been created with the copy constructor or the ZipEntry.clone() method.

Overrides:
setName in class ZipEntry

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

getDateTimeConverter

protected DateTimeConverter getDateTimeConverter()
Description copied from class: ZipEntry
Returns a DateTimeConverter for the conversion of Java time to DOS date/time fields and vice versa.

The implementation in the class ZipEntry returns DateTimeConverter.JAR.

Overrides:
getDateTimeConverter in class ZipEntry
Returns:
A DateTimeConverter - never null.
See Also:
DateTimeConverter

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

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