com.bigzip.plugin.compression.data
Interface EntryData


public interface EntryData


Method Summary
 long getChecksum()
          Returns the checksum of the uncompressed entry data, or -1 if not known.
 java.lang.String getComment()
           
 long getCompressedSize()
          Returns the size of the compressed entry data, or -1 if not known.
 java.lang.String getName()
          Returns the name of the entry.
 long getTime()
          Returns the modification time of the entry, or -1 if not specified.
 long getUncompressedSize()
          Returns the uncompressed size of the entry data, or -1 if not known.
 int hashCode()
          Returns the hash code value for this entry.
 boolean isDirectory()
          Returns true if this is a directory entry.
 boolean isEncrypted()
           
 void setChecksum(long value)
          Returns the checksum of the uncompressed entry data, or -1 if not known.
 void setComment(java.lang.String fileComment)
          Sets the optional comment string for the entry.
 void setCompressedSize(long size)
          Sets the compressed size of the entry data.
 void setEncrypted(boolean state)
          Sets the the encyption state of the entry.
 void setTime(long modifiedTimeDate)
          Sets the modification date and time of the entry.
 void setUncompressedSize(long size)
          Sets the uncompressed size of the entry data.
 java.lang.String toString()
           
 

Method Detail

isEncrypted

public boolean isEncrypted()
Returns:
True if the entry is encrypted.

setEncrypted

public void setEncrypted(boolean state)
Sets the the encyption state of the entry.
Parameters:
state - true or false

getName

public java.lang.String getName()
Returns the name of the entry.

isDirectory

public boolean isDirectory()
Returns true if this is a directory entry.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the ZIP entry.

hashCode

public int hashCode()
Returns the hash code value for this entry.
Overrides:
hashCode in class java.lang.Object

setTime

public void setTime(long modifiedTimeDate)
Sets the modification date and time of the entry.
Parameters:
time - the entry modification time in number of milliseconds since the epoch

getTime

public long getTime()
Returns the modification time of the entry, or -1 if not specified.
Returns:
Time and Date in Java format

getUncompressedSize

public long getUncompressedSize()
Returns the uncompressed size of the entry data, or -1 if not known.
Returns:
The uncompressed size of the entry

setUncompressedSize

public void setUncompressedSize(long size)
Sets the uncompressed size of the entry data.

getCompressedSize

public long getCompressedSize()
Returns the size of the compressed entry data, or -1 if not known. In the case of a stored entry, the compressed size will be the same as the uncompressed size of the entry.

setCompressedSize

public void setCompressedSize(long size)
Sets the compressed size of the entry data.

getChecksum

public long getChecksum()
Returns the checksum of the uncompressed entry data, or -1 if not known.
Returns:
The Checksum of the entry

setChecksum

public void setChecksum(long value)
Returns the checksum of the uncompressed entry data, or -1 if not known.

setComment

public void setComment(java.lang.String fileComment)
Sets the optional comment string for the entry.
Parameters:
comment - the comment string

getComment

public java.lang.String getComment()
Returns:
The comment string for the entry, or null if none.