public class AR extends Object
AR class is used for parsing standard SOM archive (ar) files.| Modifier and Type | Class and Description |
|---|---|
class |
AR.ARHeader
Archive and archive member header.
|
class |
AR.LSTHeader
Library Symbol Table header
|
| Modifier and Type | Field and Description |
|---|---|
protected RandomAccessFile |
file |
protected String |
filename |
static String |
NL |
| 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) |
protected void |
finalize() |
AR.ARHeader[] |
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) |
String |
toString() |
public static final String NL
protected String filename
protected RandomAccessFile file
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)
protected RandomAccessFile getRandomAccessFile() throws IOException
IOExceptionpublic AR.ARHeader[] getHeaders() throws IOException
IOException - Unable to process the archive file.AR.ARHeaderpublic String[] extractFiles(String outdir) throws IOException
IOExceptionpublic static void main(String[] args)
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.