Package org.eclipse.cdt.utils.elf
Class AR
- java.lang.Object
-
- org.eclipse.cdt.utils.elf.AR
-
- All Implemented Interfaces:
AutoCloseable
@Deprecated public class AR extends Object implements AutoCloseable
Deprecated.use org.eclipse.cdt.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 Elf object for performing Elf class operations.- See Also:
AR.ARHeader
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAR.ARHeaderDeprecated.TheARHeaderclass is used to store the per-object file archive headers.
-
Field Summary
Fields Modifier and Type Field Description protected ERandomAccessFileefileDeprecated.protected StringfilenameDeprecated.protected longstrtbl_posDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.voiddispose()Deprecated.String[]extractFiles(String outdir)Deprecated.String[]extractFiles(String outdir, String[] names)Deprecated.protected voidfinalize()Deprecated.AR.ARHeader[]getHeaders()Deprecated.Get an array of all the object file headers for this archive.static booleanisARHeader(byte[] ident)Deprecated.
-
-
-
Field Detail
-
filename
protected String filename
Deprecated.
-
efile
protected ERandomAccessFile efile
Deprecated.
-
strtbl_pos
protected long strtbl_pos
Deprecated.
-
-
Constructor Detail
-
AR
public AR(String filename) throws IOException
Deprecated.Creates a newARobject 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:
closein interfaceAutoCloseable
-
dispose
public void dispose()
Deprecated.
-
finalize
protected void finalize() throws ThrowableDeprecated.
-
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
-
extractFiles
public String[] extractFiles(String outdir, String[] names) throws IOException
Deprecated.- Throws:
IOException
-
extractFiles
public String[] extractFiles(String outdir) throws IOException
Deprecated.- Throws:
IOException
-
-