de.vxart.zip
Class EndOfCentralDirectory

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

public class EndOfCentralDirectory
extends ZipHeader

Encapsulates a "End of Central Directory" block from a ZIP file.

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

Field Summary
 short cdStartDiskNumber
           
 int centralDirectoryOffset
           
 short centralDirectoryRecordsAllDisks
           
 short centralDirectoryRecordsThisDisk
           
 int centralDirectorySize
           
 short commentLength
           
 short currentDiskNumber
           
 
Fields inherited from class de.vxart.zip.ZipHeader
signature, size
 
Constructor Summary
EndOfCentralDirectory(byte[] bytes)
          Constructs a new ECD 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

currentDiskNumber

public short currentDiskNumber

cdStartDiskNumber

public short cdStartDiskNumber

centralDirectoryRecordsThisDisk

public short centralDirectoryRecordsThisDisk

centralDirectoryRecordsAllDisks

public short centralDirectoryRecordsAllDisks

centralDirectorySize

public int centralDirectorySize

centralDirectoryOffset

public int centralDirectoryOffset

commentLength

public short commentLength
Constructor Detail

EndOfCentralDirectory

public EndOfCentralDirectory(byte[] bytes)
Constructs a new ECD from the given byte array.

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