de.vxart.zip
Class LocalFileHeader

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

public class LocalFileHeader
extends ZipHeader

Encapsulates a "Local File Header" block from a ZIP file.

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

Field Summary
 long compressedSize
           
 short compressionMethod
           
 long crc
           
 int extraLength
           
 short flag
           
 short lastModificationDate
           
 short lastModificationTime
           
 int nameLength
           
 long uncompressedSize
           
 short versionNeededToExtract
           
 
Fields inherited from class de.vxart.zip.ZipHeader
signature, size
 
Constructor Summary
LocalFileHeader(byte[] bytes)
          Constructs a new LFH from the given byte array.
 
Method Summary
 java.lang.String toString()
          Returns a really long String representation of a LFH instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionNeededToExtract

public short versionNeededToExtract

flag

public short flag

compressionMethod

public short compressionMethod

lastModificationTime

public short lastModificationTime

lastModificationDate

public short lastModificationDate

compressedSize

public long compressedSize

uncompressedSize

public long uncompressedSize

crc

public long crc

nameLength

public int nameLength

extraLength

public int extraLength
Constructor Detail

LocalFileHeader

public LocalFileHeader(byte[] bytes)
Constructs a new LFH from the given byte array.

Parameters:
bytes - a byte array containing a valid LFH block
Method Detail

toString

public java.lang.String toString()
Returns a really long String representation of a LFH instance. Use only for debugging, not for daily consumption.

Overrides:
toString in class java.lang.Object