|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.elf.Elf
public class Elf
This describes the interface to the ELF executable file format.
Copyright (c) 2004 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
static java.lang.String |
copyright
Copyright string |
Dwarf2 |
dwarf2
The DWARF2 debug data |
ElfHeader |
elfHeader
The ELF Header |
ProgramHeader[] |
programHeader
The Program Headers |
SectionHeader[] |
sectionHeader
The Section Headers |
StringTable |
sectionNameStringTable
The section name string table |
| Constructor Summary | |
|---|---|
Elf()
|
|
| Method Summary | |
|---|---|
int |
addrBytes()
This method returns the number of byte in an address. |
java.lang.String |
getFilename()
This method returns the file name of the ELF file. |
byte[] |
getRaw()
This method returns the raw data read from the input file. |
long |
getTocAddr()
This method returns the address offset of the TOC section. |
boolean |
isELF()
This method returns true if the file is an ELF file and false otherwise. |
void |
read(java.lang.String fileName)
This method attempts to read an ELF format executable file. |
boolean |
swapBytes()
This method indicates if endian "byte swapping" should be performed on data in the file. |
java.lang.String |
toString()
This method returns a string representation of the ELF file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String copyright
public ElfHeader elfHeader
public ProgramHeader[] programHeader
public SectionHeader[] sectionHeader
public StringTable sectionNameStringTable
public Dwarf2 dwarf2
| Constructor Detail |
|---|
public Elf()
| Method Detail |
|---|
public void read(java.lang.String fileName)
throws java.io.IOException
fileName - The name of the ELF file to be read.
java.io.IOException - This method throws an IO Exception
for any IO errors when reading the file.public byte[] getRaw()
public boolean isELF()
public boolean swapBytes()
public int addrBytes()
public java.lang.String getFilename()
public long getTocAddr()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||