de.vxart.zip
Class CentralDirectoryRecord

java.lang.Object
  extended by de.vxart.zip.ZipHeader
      extended by de.vxart.zip.CentralDirectoryRecord

public class CentralDirectoryRecord
extends ZipHeader

Encapsulates a single "Central Directory Record" block from a ZIP file.

Author:
Philipp Reichart, philipp.reichart@vxart.de

Field Summary
 long compressedSize
           
 short compressionMethod
           
 long crc
           
 int externalFileAttributes
           
 short extraLength
           
 short fileCommentLength
           
 short flag
           
 short internalFileAttributes
           
 short lastModificationDate
           
 short lastModificationTime
           
 short nameLength
           
 int offsetToLocalFileHeader
           
 short startDiskNumber
           
 long uncompressedSize
           
 short versionMadeBy
           
 short versionNeededToExtract
           
 
Fields inherited from class de.vxart.zip.ZipHeader
signature, size
 
Constructor Summary
CentralDirectoryRecord(byte[] bytes)
          Constructs a new CDR from the given byte array.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionMadeBy

public short versionMadeBy

versionNeededToExtract

public short versionNeededToExtract

flag

public short flag

compressionMethod

public short compressionMethod

lastModificationTime

public short lastModificationTime

lastModificationDate

public short lastModificationDate

crc

public long crc

compressedSize

public long compressedSize

uncompressedSize

public long uncompressedSize

nameLength

public short nameLength

extraLength

public short extraLength

fileCommentLength

public short fileCommentLength

startDiskNumber

public short startDiskNumber

internalFileAttributes

public short internalFileAttributes

externalFileAttributes

public int externalFileAttributes

offsetToLocalFileHeader

public int offsetToLocalFileHeader
Constructor Detail

CentralDirectoryRecord

public CentralDirectoryRecord(byte[] bytes)
Constructs a new CDR from the given byte array.

Parameters:
bytes - a byte array containing a valid CDR block