Class AR.ARHeader

  • Enclosing class:
    AR

    public class AR.ARHeader
    extends Object
    The ARHeader class is used to store the per-object file archive headers. It can also create an Mach-O object for inspecting the object file data.
    • 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()
      • getObjectDataOffset

        public long getObjectDataOffset()
                                 throws IOException
        Create an new MachO object for the object file.
        Returns:
        A new MachO object.
        Throws:
        IOException - Not a valid MachO object file.
        See Also:
        MachO( String, long )