TrueZIP Driver ZIP 7.1

de.schlichtherle.truezip.fs.archive.zip
Class ZipArchiveEntry

java.lang.Object
  extended by de.schlichtherle.truezip.zip.ZipEntry
      extended by de.schlichtherle.truezip.fs.archive.zip.ZipArchiveEntry
All Implemented Interfaces:
Entry, FsArchiveEntry, Cloneable
Direct Known Subclasses:
JarArchiveEntry

@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class)
public class ZipArchiveEntry
extends ZipEntry
implements FsArchiveEntry

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

Author:
Christian Schlichtherle
See Also:
ZipDriver

Nested Class Summary
 
Nested classes/interfaces inherited from interface de.schlichtherle.truezip.entry.Entry
Entry.Access, Entry.Size, Entry.Type
 
Field Summary
 
Fields inherited from class de.schlichtherle.truezip.zip.ZipEntry
DEFLATED, MIN_DOS_TIME, PLATFORM_FAT, PLATFORM_UNIX, STORED, UNKNOWN
 
Fields inherited from interface de.schlichtherle.truezip.entry.Entry
ALL_ACCESS_SET, ALL_SIZE_SET, ALL_TYPE_SET, DIRECTORY_TYPE_SET, FILE_TYPE_SET, SPECIAL_TYPE_SET, SYMLINK_TYPE_SET, UNKNOWN
 
Constructor Summary
ZipArchiveEntry(String name)
           
ZipArchiveEntry(String name, ZipEntry template)
           
 
Method Summary
protected  DateTimeConverter getDateTimeConverter()
          Returns a DateTimeConverter for the conversion of Java time to DOS date/time fields and vice versa.
 long getSize(Entry.Size type)
           
 long getTime(Entry.Access type)
           
 Entry.Type getType()
           
 boolean setSize(Entry.Size type, long size)
           
 boolean setTime(Entry.Access type, long time)
           
 String toString()
          Returns a string representation of this object for debugging and logging purposes.
 
Methods inherited from class de.schlichtherle.truezip.zip.ZipEntry
clone, getComment, getCompressedSize, getCrc, getDosTime, getExtra, getMethod, getName, getPlatform, getSize, getTime, isDirectory, setComment, setCompressedSize, setCrc, setDosTime, setExtra, setMethod, setPlatform, setSize, setTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.schlichtherle.truezip.entry.Entry
getName
 

Constructor Detail

ZipArchiveEntry

ZipArchiveEntry(String name)

ZipArchiveEntry

ZipArchiveEntry(String name,
                ZipEntry template)
Method Detail

getType

public Entry.Type getType()
Specified by:
getType in interface FsArchiveEntry

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

getSize

public long getSize(Entry.Size type)
Specified by:
getSize in interface Entry

setSize

public boolean setSize(Entry.Size type,
                       long size)
Specified by:
setSize in interface FsArchiveEntry

getTime

public long getTime(Entry.Access type)
Specified by:
getTime in interface Entry

setTime

public boolean setTime(Entry.Access type,
                       long time)
Specified by:
setTime in interface FsArchiveEntry

toString

public String toString()
Returns a string representation of this object for debugging and logging purposes.

Overrides:
toString in class ZipEntry

TrueZIP Driver ZIP 7.1

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