Class AR

  • All Implemented Interfaces:
    AutoCloseable

    @Deprecated
    public class AR
    extends Object
    implements AutoCloseable
    Deprecated.
    use org.eclipse.cdt.utils.AR
    The AR class is used for parsing standard ELF 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:
    AR.ARHeader
    • Field Detail

      • filename

        protected String filename
        Deprecated.
      • strtbl_pos

        protected long strtbl_pos
        Deprecated.
    • Constructor Detail

      • AR

        public AR​(String filename)
           throws IOException
        Deprecated.
        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 Detail

      • close

        public void close()
        Deprecated.
        Specified by:
        close in interface AutoCloseable
      • dispose

        public void dispose()
        Deprecated.
      • isARHeader

        public static boolean isARHeader​(byte[] ident)
        Deprecated.
      • getHeaders

        public AR.ARHeader[] getHeaders()
                                 throws IOException
        Deprecated.
        Get an array of all the object file headers for this archive.
        Returns:
        An array of headers, one for each object within the archive.
        Throws:
        IOException - Unable to process the archive file.
        See Also:
        AR.ARHeader