net.sf.jpkgmk.pkgmap
Class PkgMapEntryHeader

java.lang.Object
  extended by net.sf.jpkgmk.AbstractLineProvider
      extended by 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 $

Nested Class Summary
static class PkgMapEntryHeader.PkgMapEntryHeaderParser
           
 
Constructor Summary
PkgMapEntryHeader(java.lang.Integer numberOfParts, java.lang.Long maximumPartSize)
           
PkgMapEntryHeader(java.lang.Integer numberOfParts, java.lang.Long maximumPartSize, java.lang.Long compressedPkgSize)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 boolean equals(java.lang.Object obj, boolean ignoreLastModified)
           
 java.lang.String getKey()
           
 java.lang.String getLine()
           
 PkgMapEntryType getType()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class net.sf.jpkgmk.AbstractLineProvider
write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.jpkgmk.LineProvider
write
 

Constructor Detail

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)
Method Detail

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.