org.at4j.zip
Class ZipEntryCentralFileHeaderData

java.lang.Object
  extended by org.at4j.zip.ZipEntryCentralFileHeaderData

public class ZipEntryCentralFileHeaderData
extends Object

This bean contains the data stored about a Zip entry in the Zip file central directory.. It is used by the ZipFileParser to create an appropriate ZipEntry object from.

This is part of the ZipFile implementations. Clients should not have to bother with this object.

Since:
1.0
Author:
Karl Gustafsson
See Also:
ZipEntryLocalFileHeaderData

Constructor Summary
ZipEntryCentralFileHeaderData()
           
 
Method Summary
 UnsignedInteger getCompressedSize()
           
 ZipEntryCompressionMethod getCompressionMethod()
           
 UnsignedInteger getCrc32()
           
 UnsignedShort getDiskNumberStart()
           
 ZipExternalFileAttributes getExternalFileAttributes()
           
 Collection<ZipEntryExtraField> getExtraFields()
           
 String getFileComment()
           
 ZipGeneralPurposeBitFlags getGeneralPurposeBitFlags()
           
 ZipInternalFileAttributes getInternalFileAttributes()
           
 Date getLastModificationTime()
           
 AbsoluteLocation getLocation()
           
 UnsignedInteger getRelativeOffsetOfLocalHeader()
           
 UnsignedInteger getUncompressedSize()
           
 UnsignedByte getVersionNeededToExtract()
           
 UnsignedByte getVersionUsedToCreate()
           
 boolean isDirectory()
           
 void setCompressedSize(UnsignedInteger compressedSize)
           
 void setCompressionMethod(ZipEntryCompressionMethod compressionMethod)
           
 void setCrc32(UnsignedInteger crc32)
           
 void setDirectory(boolean directory)
           
 void setDiskNumberStart(UnsignedShort diskNumberStart)
           
 void setExternalFileAttributes(ZipExternalFileAttributes externalFileAttributes)
           
 void setExtraFields(Collection<ZipEntryExtraField> extraFields)
           
 void setFileComment(String fileComment)
           
 void setGeneralPurposeBitFlags(ZipGeneralPurposeBitFlags generalPurposeBitFlags)
           
 void setInternalFileAttributes(ZipInternalFileAttributes internalFileAttributes)
           
 void setLastModificationTime(Date lastModificationTime)
           
 void setLocation(AbsoluteLocation location)
           
 void setRelativeOffsetOfLocalHeader(UnsignedInteger relativeOffsetOfLocalHeader)
           
 void setUncompressedSize(UnsignedInteger uncompressedSize)
           
 void setVersionNeededToExtract(UnsignedByte versionNeededToExtract)
           
 void setVersionUsedToCreate(UnsignedByte versionUsedToCreate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipEntryCentralFileHeaderData

public ZipEntryCentralFileHeaderData()
Method Detail

setVersionUsedToCreate

public void setVersionUsedToCreate(UnsignedByte versionUsedToCreate)

getVersionUsedToCreate

public UnsignedByte getVersionUsedToCreate()

getVersionNeededToExtract

public UnsignedByte getVersionNeededToExtract()

setVersionNeededToExtract

public void setVersionNeededToExtract(UnsignedByte versionNeededToExtract)

getGeneralPurposeBitFlags

public ZipGeneralPurposeBitFlags getGeneralPurposeBitFlags()

setGeneralPurposeBitFlags

public void setGeneralPurposeBitFlags(ZipGeneralPurposeBitFlags generalPurposeBitFlags)

getCompressionMethod

public ZipEntryCompressionMethod getCompressionMethod()

setCompressionMethod

public void setCompressionMethod(ZipEntryCompressionMethod compressionMethod)

getLastModificationTime

public Date getLastModificationTime()

setLastModificationTime

public void setLastModificationTime(Date lastModificationTime)

getCrc32

public UnsignedInteger getCrc32()

setCrc32

public void setCrc32(UnsignedInteger crc32)

getCompressedSize

public UnsignedInteger getCompressedSize()

setCompressedSize

public void setCompressedSize(UnsignedInteger compressedSize)

getUncompressedSize

public UnsignedInteger getUncompressedSize()

setUncompressedSize

public void setUncompressedSize(UnsignedInteger uncompressedSize)

getDiskNumberStart

public UnsignedShort getDiskNumberStart()

setDiskNumberStart

public void setDiskNumberStart(UnsignedShort diskNumberStart)

getInternalFileAttributes

public ZipInternalFileAttributes getInternalFileAttributes()

setInternalFileAttributes

public void setInternalFileAttributes(ZipInternalFileAttributes internalFileAttributes)

getExternalFileAttributes

public ZipExternalFileAttributes getExternalFileAttributes()

setExternalFileAttributes

public void setExternalFileAttributes(ZipExternalFileAttributes externalFileAttributes)

getRelativeOffsetOfLocalHeader

public UnsignedInteger getRelativeOffsetOfLocalHeader()

setRelativeOffsetOfLocalHeader

public void setRelativeOffsetOfLocalHeader(UnsignedInteger relativeOffsetOfLocalHeader)

getLocation

public AbsoluteLocation getLocation()

setLocation

public void setLocation(AbsoluteLocation location)

getExtraFields

public Collection<ZipEntryExtraField> getExtraFields()

setExtraFields

public void setExtraFields(Collection<ZipEntryExtraField> extraFields)

getFileComment

public String getFileComment()

setFileComment

public void setFileComment(String fileComment)

isDirectory

public boolean isDirectory()

setDirectory

public void setDirectory(boolean directory)