public class AR extends Object
AR
class is used for parsing standard XCOFF32 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 XCOFF32 object for performing XCOFF32
class operations.AR.MemberHeader
Modifier and Type | Class and Description |
---|---|
class |
AR.ARHeader
Content of an archive in AIX XCOFF32 format
|
class |
AR.MemberHeader
The
ARHeader class is used to store the per-object file
archive headers. |
Constructor and Description |
---|
AR(String filename)
Creates a new
AR object from the contents of
the given file. |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
String[] |
extractFiles(String outdir) |
String[] |
extractFiles(String outdir,
String[] names) |
protected void |
finalize() |
AR.MemberHeader[] |
getHeaders()
Get an array of all the object file headers for this archive.
|
protected RandomAccessFile |
getRandomAccessFile() |
static boolean |
isARHeader(byte[] ident) |
static void |
main(String[] args) |
protected String |
removeBlanks(String str)
Remove the padding from the archive header strings.
|
protected String filename
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.MemberHeader[] getHeaders() throws IOException
IOException
- Unable to process the archive file.AR.ARHeader
public String[] extractFiles(String outdir, String[] names) throws IOException
IOException
protected String removeBlanks(String str)
public String[] extractFiles(String outdir) throws IOException
IOException
protected RandomAccessFile getRandomAccessFile() throws IOException
IOException
public static void main(String[] args)
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.