@Deprecated public class AR extends Object
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.AR.ARHeader
Modifier and Type | Class and Description |
---|---|
class |
AR.ARHeader
Deprecated.
The
ARHeader class is used to store the per-object file
archive headers. |
Modifier and Type | Field and Description |
---|---|
protected ERandomAccessFile |
efile
Deprecated.
|
protected String |
filename
Deprecated.
|
protected long |
strtbl_pos
Deprecated.
|
Constructor and Description |
---|
AR(String filename)
Deprecated.
Creates a new
AR object from the contents of
the given file. |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Deprecated.
|
String[] |
extractFiles(String outdir)
Deprecated.
|
String[] |
extractFiles(String outdir,
String[] names)
Deprecated.
|
protected void |
finalize()
Deprecated.
|
AR.ARHeader[] |
getHeaders()
Deprecated.
Get an array of all the object file headers for this archive.
|
static boolean |
isARHeader(byte[] ident)
Deprecated.
|
protected String filename
protected ERandomAccessFile efile
protected long strtbl_pos
public AR(String filename) throws IOException
AR
object from the contents of
the given file.filename
- The file to process.IOException
- The file is not a valid archive.public void dispose()
protected void finalize() throws Throwable
public static boolean isARHeader(byte[] ident)
public AR.ARHeader[] getHeaders() throws IOException
IOException
- Unable to process the archive file.AR.ARHeader
public String[] extractFiles(String outdir, String[] names) throws IOException
IOException
public String[] extractFiles(String outdir) throws IOException
IOException
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.