Class PEArchive

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    @Deprecated
    public class PEArchive
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Deprecated.
    - use org.eclipse.cdt.ui.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 PE object for performing PE class operations.
    See Also:
    PEArchive.ARHeader
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  PEArchive.ARHeader
      Deprecated.
      The ARHeader class is used to store the per-object file archive headers.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String filename
      Deprecated.
       
      protected java.io.RandomAccessFile rfile
      Deprecated.
       
      protected long strtbl_pos
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      PEArchive​(java.lang.String filename)
      Deprecated.
      Creates a new AR object from the contents of the given file.
    • Field Detail

      • filename

        protected java.lang.String filename
        Deprecated.
      • rfile

        protected java.io.RandomAccessFile rfile
        Deprecated.
      • strtbl_pos

        protected long strtbl_pos
        Deprecated.
    • Constructor Detail

      • PEArchive

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

      • close

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

        public void dispose()
        Deprecated.
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Deprecated.
        Do not leak fds.
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • isARHeader

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

        public PEArchive.ARHeader[] getHeaders()
                                        throws java.io.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:
        java.io.IOException - Unable to process the archive file.
        See Also:
        PEArchive.ARHeader
      • extractFiles

        public java.lang.String[] extractFiles​(java.lang.String outdir,
                                               java.lang.String[] names)
                                        throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • extractFiles

        public java.lang.String[] extractFiles​(java.lang.String outdir)
                                        throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException