com.jguild.jrpm.io
public class RPMLead extends Object
C struct :
struct rpmlead {
unsigned char magic[4];
unsigned char major, minor;
short type; (2 byte)
short archnum; (2 byte)
char name[66];
short osnum; (2 byte)
short signature_type; (2 byte)
char reserved[16];
} ;
Version: $Id: RPMLead.java,v 1.6 2003/10/20 16:32:11 mkuss Exp $
Constructor Summary | |
---|---|
protected | RPMLead(DataInputStream inputStream) |
Method Summary | |
---|---|
LeadArchitecture | getArchitecture()
Get the architecture of a rpm
|
int | getMajorVersion()
Get the major number of the rpm version a rpm is build for
|
int | getMinorVersion()
Get the minor number of the rpm version a rpm is build for
|
String | getName()
Get the name of this rpm. |
LeadOS | getOperationSystem()
Get the operation system a rpm is build for
|
LeadSignature | getSignatureType()
Get the type of signature this rpm provides
|
long | getSize()
Get the size of this structure in bytes (as defined for a rpm file)
|
LeadType | getType()
Get the type of a rpm file (binary or source)
|
Returns: the architecture
Returns: The major number
Returns: The minor number
Returns: The name
Returns: The operation system
Returns: The signature
Returns: The size (96 bytes)
Returns: The type