net.sf.jpkgmk.pkgmap
Class PkgMapEntryHeader
java.lang.Object
net.sf.jpkgmk.AbstractLineProvider
net.sf.jpkgmk.pkgmap.PkgMapEntryHeader
- All Implemented Interfaces:
- LineProvider, PkgMapEntry
public class PkgMapEntryHeader
- extends AbstractLineProvider
- implements PkgMapEntry
Header entry line for a pkgmap file
Each pkgmap file must have one line that provides information about the
number of parts,
maximum size of parts that make up the package, and,
optionally, the size of the package after compression (where size is given in 512-byte blocks).
This line is in the following format:
: number_of_parts maximum_part_size compressed_pkg_size
- Since:
- 1.0
- Version:
- $Revision: 2 $ $Date: 2008-08-20 21:14:19 +0200 (Mi, 20 Aug 2008) $
- Author:
- gommma (gommma AT users.sourceforge.net), Last changed by: $Author: gommma $
Constructor Summary |
PkgMapEntryHeader(java.lang.Integer numberOfParts,
java.lang.Long maximumPartSize)
|
PkgMapEntryHeader(java.lang.Integer numberOfParts,
java.lang.Long maximumPartSize,
java.lang.Long compressedPkgSize)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PkgMapEntryHeader
public PkgMapEntryHeader(java.lang.Integer numberOfParts,
java.lang.Long maximumPartSize)
PkgMapEntryHeader
public PkgMapEntryHeader(java.lang.Integer numberOfParts,
java.lang.Long maximumPartSize,
java.lang.Long compressedPkgSize)
getLine
public java.lang.String getLine()
- Specified by:
getLine
in interface LineProvider
- Returns:
- The prototype line
getType
public PkgMapEntryType getType()
- Specified by:
getType
in interface PkgMapEntry
- Returns:
- Returns the type of this entry
getKey
public java.lang.String getKey()
- Returns:
- The key of the header line which is a ":" (colon)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj,
boolean ignoreLastModified)
- Specified by:
equals
in interface PkgMapEntry
ignoreLastModified
- whether or not the "lastModified" field should be ignored when checking for equality
- Returns:
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2007-2008. All Rights Reserved.