Package org.eclipse.cdt.utils.coff
Class PEArchive
- java.lang.Object
-
- org.eclipse.cdt.utils.coff.PEArchive
-
- All Implemented Interfaces:
java.lang.AutoCloseable
@Deprecated public class PEArchive extends java.lang.Object implements java.lang.AutoCloseableDeprecated.- use org.eclipse.cdt.ui.utils.ARTheARclass 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 classPEArchive.ARHeaderDeprecated.TheARHeaderclass is used to store the per-object file archive headers.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringfilenameDeprecated.protected java.io.RandomAccessFilerfileDeprecated.protected longstrtbl_posDeprecated.
-
Constructor Summary
Constructors Constructor Description PEArchive(java.lang.String filename)Deprecated.Creates a newARobject from the contents of the given file.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.voiddispose()Deprecated.java.lang.String[]extractFiles(java.lang.String outdir)Deprecated.java.lang.String[]extractFiles(java.lang.String outdir, java.lang.String[] names)Deprecated.protected voidfinalize()Deprecated.Do not leak fds.PEArchive.ARHeader[]getHeaders()Deprecated.Get an array of all the object file headers for this archive.static booleanisARHeader(byte[] ident)Deprecated.
-
-
-
Method Detail
-
close
public void close()
Deprecated.- Specified by:
closein interfacejava.lang.AutoCloseable
-
dispose
public void dispose()
Deprecated.
-
finalize
protected void finalize() throws java.lang.ThrowableDeprecated.Do not leak fds.- Overrides:
finalizein classjava.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.IOExceptionDeprecated.- Throws:
java.io.IOException
-
extractFiles
public java.lang.String[] extractFiles(java.lang.String outdir) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
-