All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.arcsinc.hardwarehost.coff.CoffHandler

java.lang.Object
   |
   +----com.arcsinc.hardwarehost.coff.CoffHandler

public class CoffHandler
extends Object
The CoffHandler class is used to manipulate an application's executable file. This includes tracking the symbols, tracking the sections, providing the sections in an int array for loading to the target, etc.


Variable Index

 o loadableSections

Constructor Index

< alt="Constructor Index">
 o CoffHandler()
default constructor.
 o CoffHandler(String)
standard constructor which will load the application executable into this instantiated object for later use.

Method Index

 o getCoffFileName()
Get the value of coffFileName.
 o getCoffVer()
Get the value of coffVer.
 o getEntryPtr()
Get the address of the starting program instruction or entry pointer.
 o getLoadableSectionAddress(int)
Get the initial address of a "loadable" section.
 o getLoadableSectionData(int)
Get a "loadable" section data.
 o getNumLoadableSections()
Get the number of "loadable" sections.
 o getSectionAddresses()
Get an int array of the section addresses, in order of loading.
 o getSectionNames()
Get a String array of thet a String array of the section names, in order of loading.
 o getSectionSizes()
Get an int array of the section lengths, 32 bit words, in order of loading.
 o reportInfo()
Send summary info about the last coff file loaded to the console.
 o setCoffFileName(String)
Set the value of coffFileName.
 o setCoffVer(short)
Set the value of coffVer.

Variables

 o loadableSections
 public CoffSection loadableSections[]

Constructors

 o CoffHandler
 public CofHandler
 public CoffHandler()
default constructor.

 o CoffHandler
 public CoffHandler(String fileName)
standard constructor which will load the application executable into this instantiated object for later use.

Parameters:
fileName - name of the application executable file.

Methods

 o reportInfo
 public void reportInfo()
Send summary info about the last coff file loaded to the console.

 o getCoffFileName
 public String getCoffFileName()
Get the value of coffFileName.

Returns:
Value of coffFileName.
 o setCoffFileName
 public void setCoffFileName(String v)
Set the valueeName(String v)
Set the value of coffFileName. This file will be loaded into this object.

Parameters:
v - Value to assign to coffFileName.
 o getCoffVer
 public short getCoffVer()
Get the value of coffVer.

Returns:
Value of coffVer.
 o setCoffVer
 public void setCoffVer(short v)
Set the value of coffVer.

Parameters:
v - Value to assign to coffVer.
 o getEntryPtr
 public int getEntryPtr()
Get the address of the starting program instruction or entry pointer.

Returns:
entryPtr.
 o getSectionNames
 public String[] getSectionNames()
Get a String array of the section names, in order of loading.

section names, in order of loading.

Returns:
array of section names.
 o getSectionAddresses
 public int[] getSectionAddresses()
Get an int array of the section addresses, in order of loading.

Returns:
array of section addresses.
 o getSectionSizes
 public int[] getSectionSizes()
Get an int array of the section lengths, 32 bit words, in order of loading.

Returns:
array of section lengths.
 o getNumLoadableSections
 public int getNumLoadableSections()
Get the number of "loadable" sections. A loadable section contains data, either parameters or executable code which must be downloaded to the target processor.

Returns:
the number of loadable sections.
 o getLoadableSectionData
 public int[] getLoadableSectionData(int i)
Get a "loadable" section data. A loadable section contains data, either parameters or executable code which must be downloaded to the target processor.be downloaded to the target processor.

Parameters:
i - index of "loadable" section.
Returns:
an int[] with the section data. If an inappropriate index is provided, a zero length array is returned.
 o getLoadableSectionAddress
 public int getLoadableSectionAddress(int i)
Get the initial address of a "loadable" section. A loadable section contains ction contains data, either parameters or executable code which must be downloaded to the target processor.

Parameters:
i - index of "loadable" section.
Returns:
beginning address of section. If an inappropriate index is provided, a -1 is returned (0xffffffff).

All Packages  Class Hierarchy  This Package  Previous  Next  Index
dy>