Class AR.ARHeader

  • Enclosing class:
    AR

    public class AR.ARHeader
    extends java.lang.Object
    The ARHeader class is used to store the per-object file archive headers. It can also create an Elf object for inspecting the object file data.
    • 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
      java.lang.String getArchiveName()  
      Elf getElf()
      Create an new Elf object for the object file.
      byte[] getObjectData()  
      java.lang.String getObjectName()
      Get the name of the object file
      long getSize()
      Get the size of the object file .
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ARHeader

        public ARHeader()
                 throws java.io.IOException
        Creates a new archive header object. Assumes that efile is already at the correct location in the file.
        Throws:
        java.io.IOException - There was an error processing the header data from the file.
    • Method Detail

      • getObjectName

        public java.lang.String getObjectName()
        Get the name of the object file
      • getSize

        public long getSize()
        Get the size of the object file .
      • getArchiveName

        public java.lang.String getArchiveName()
      • getElf

        public Elf getElf()
                   throws java.io.IOException
        Create an new Elf object for the object file.
        Returns:
        A new Elf object.
        Throws:
        java.io.IOException - Not a valid Elf object file.
        See Also:
        Elf( String, long )
      • getObjectData

        public byte[] getObjectData()
                             throws java.io.IOException
        Throws:
        java.io.IOException