edu.sdsc.inca.util
Class RpmPackage

java.lang.Object
  extended byedu.sdsc.inca.util.RpmPackage

public class RpmPackage
extends java.lang.Object


Nested Class Summary
 class RpmPackage.RpmLead
          The lead of an RPM package is a fixed-length section that appears in the first 96 bytes.
 class RpmPackage.RpmProperty
          An RPM property is a numeric tag, a type indicator, and associated data.
 
Constructor Summary
RpmPackage(java.io.InputStream source)
          Instantiates an RpmPackage by reading source.
 
Method Summary
 RpmPackage.RpmProperty[] getHeader()
          Returns the properties from the package header, which contains most of the package properties of interest.
 RpmPackage.RpmLead getLead()
          Returns the lead from the RPM package.
 RpmPackage.RpmProperty[] getSignature()
          Returns the properties from the package signature.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RpmPackage

public RpmPackage(java.io.InputStream source)
           throws java.io.IOException
Instantiates an RpmPackage by reading source. After instantiation the source stream will point to the gzipped tar file contained within the package.

Parameters:
source - An input stream set to return the bytes of an RPM package.
Method Detail

getLead

public RpmPackage.RpmLead getLead()
Returns the lead from the RPM package. The lead is an anachronism that should generally be ignored.


getHeader

public RpmPackage.RpmProperty[] getHeader()
Returns the properties from the package header, which contains most of the package properties of interest.


getSignature

public RpmPackage.RpmProperty[] getSignature()
Returns the properties from the package signature.


main

public static void main(java.lang.String[] args)