Package org.eclipse.cdt.utils.xcoff
Class AR
java.lang.Object
org.eclipse.cdt.utils.xcoff.AR
- All Implemented Interfaces:
AutoCloseable
The
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.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Content of an archive in AIX XCOFF32 formatclass
TheARHeader
class is used to store the per-object file archive headers. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
dispose()
String[]
extractFiles
(String outdir) String[]
extractFiles
(String outdir, String[] names) protected void
finalize()
Get an array of all the object file headers for this archive.protected RandomAccessFile
static boolean
isARHeader
(byte[] ident) static void
protected String
removeBlanks
(String str) Remove the padding from the archive header strings.
-
Field Details
-
filename
-
-
Constructor Details
-
AR
Creates a newAR
object from the contents of the given file.- Parameters:
filename
- The file to process.- Throws:
IOException
- The file is not a valid archive.
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
dispose
public void dispose() -
finalize
-
isARHeader
public static boolean isARHeader(byte[] ident) -
getHeaders
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:
-
extractFiles
- Throws:
IOException
-
removeBlanks
Remove the padding from the archive header strings. -
extractFiles
- Throws:
IOException
-
getRandomAccessFile
- Throws:
IOException
-
main
-