Package org.eclipse.cdt.utils.elf
Class AR.ARHeader
- java.lang.Object
-
- org.eclipse.cdt.utils.elf.AR.ARHeader
-
-
Constructor Summary
Constructors Constructor Description ARHeader()
Creates a new archive header object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getArchiveName()
Elf
getElf()
Create an new Elf object for the object file.byte[]
getObjectData()
String
getObjectName()
Get the name of the object filelong
getSize()
Get the size of the object file .
-
-
-
Constructor Detail
-
ARHeader
public ARHeader() throws IOException
Creates a new archive header object. Assumes that efile is already at the correct location in the file.- Throws:
IOException
- There was an error processing the header data from the file.
-
-
Method Detail
-
getObjectName
public String getObjectName()
Get the name of the object file
-
getSize
public long getSize()
Get the size of the object file .
-
getArchiveName
public String getArchiveName()
-
getElf
public Elf getElf() throws IOException
Create an new Elf object for the object file.- Returns:
- A new Elf object.
- Throws:
IOException
- Not a valid Elf object file.- See Also:
Elf( String, long )
-
getObjectData
public byte[] getObjectData() throws IOException
- Throws:
IOException
-
-