Class AR

java.lang.Object
org.eclipse.cdt.utils.macho.AR
All Implemented Interfaces:
AutoCloseable

public class AR extends Object implements AutoCloseable
The AR class is used for parsing standard archive (ar) files. Each object within the archive is represented by an ARHeader class. Each of of these objects can then be turned into an Elf object for performing Elf class operations.
See Also:
  • Field Details

    • filename

      protected String filename
    • efile

      protected ERandomAccessFile efile
    • strtbl_pos

      protected long strtbl_pos
  • Constructor Details

    • AR

      public AR(String filename) throws IOException
      Creates a new AR object from the contents of the given file.
      Parameters:
      filename - The file to process.
      Throws:
      IOException - The file is not a valid archive.
  • Method Details