- java.lang.Object
-
- com.ibm.j9ddr.libraries.CoreFileResolver
-
- All Implemented Interfaces:
ILibraryResolver
public class CoreFileResolver extends Object implements ILibraryResolver
-
-
Field Summary
Fields Modifier and Type Field Description protected File
coreFile
protected Footer
footer
static int
FOOTER_MAGIC
static byte[]
FOOTER_MAGIC_BYTES
protected ImageInputStream
stream
protected boolean
validFile
-
Constructor Summary
Constructors Constructor Description CoreFileResolver(File file)
CoreFileResolver(String coreFilePath)
CoreFileResolver(ImageInputStream stream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Give the resolver a chance to clean up any used resourcesvoid
extractLibrariesToDir(String path)
void
extractLibrary(String libraryName, File path)
boolean
hasLibraries()
static void
main(String[] args)
-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface com.ibm.j9ddr.corereaders.ILibraryResolver
getLibrary, getLibrary
-
-
-
-
Field Detail
-
FOOTER_MAGIC
public static final int FOOTER_MAGIC
- See Also:
- Constant Field Values
-
FOOTER_MAGIC_BYTES
public static final byte[] FOOTER_MAGIC_BYTES
-
coreFile
protected final File coreFile
-
stream
protected ImageInputStream stream
-
validFile
protected boolean validFile
-
footer
protected Footer footer
-
-
Constructor Detail
-
CoreFileResolver
public CoreFileResolver(String coreFilePath)
-
CoreFileResolver
public CoreFileResolver(File file)
-
CoreFileResolver
public CoreFileResolver(ImageInputStream stream)
-
-
Method Detail
-
main
public static void main(String[] args)
-
extractLibrariesToDir
public void extractLibrariesToDir(String path) throws IOException
- Throws:
IOException
-
extractLibrary
public void extractLibrary(String libraryName, File path) throws IOException
- Throws:
IOException
-
hasLibraries
public boolean hasLibraries()
-
dispose
public void dispose()
Give the resolver a chance to clean up any used resources- Specified by:
dispose
in interfaceILibraryResolver
-
-