org.freecompany.redline.header
Class Lead

java.lang.Object
  extended by org.freecompany.redline.header.Lead

public class Lead
extends java.lang.Object


Field Summary
protected  Architecture arch
           
static int LEAD_SIZE
           
protected  byte major
           
protected  byte minor
           
protected  java.lang.String name
           
protected  Os os
           
protected  short sigtype
           
protected  RpmType type
           
 
Constructor Summary
Lead()
           
 
Method Summary
 Architecture getArch()
           
 java.lang.CharSequence getName()
           
 void read(java.nio.channels.ReadableByteChannel channel)
           
 void setArch(Architecture arch)
           
 void setMajor(byte major)
           
 void setMinor(byte minor)
           
 void setName(java.lang.String name)
           
 void setOs(Os os)
           
 void setSigtype(short sigtype)
           
 void setType(RpmType type)
           
 java.lang.String toString()
           
 void write(java.nio.channels.WritableByteChannel channel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LEAD_SIZE

public static final int LEAD_SIZE
See Also:
Constant Field Values

major

protected byte major

minor

protected byte minor

type

protected RpmType type

arch

protected Architecture arch

name

protected java.lang.String name

os

protected Os os

sigtype

protected short sigtype
Constructor Detail

Lead

public Lead()
Method Detail

getName

public java.lang.CharSequence getName()

getArch

public Architecture getArch()

setMajor

public void setMajor(byte major)

setMinor

public void setMinor(byte minor)

setType

public void setType(RpmType type)

setArch

public void setArch(Architecture arch)

setName

public void setName(java.lang.String name)

setOs

public void setOs(Os os)

setSigtype

public void setSigtype(short sigtype)

read

public void read(java.nio.channels.ReadableByteChannel channel)
          throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.nio.channels.WritableByteChannel channel)
           throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object