Class CoreFileResolver
java.lang.Object
com.ibm.j9ddr.libraries.CoreFileResolver
- All Implemented Interfaces:
ILibraryResolver
-
Field Summary
Modifier and TypeFieldDescriptionprotected final File
protected Footer
static final int
static final byte[]
protected ImageInputStream
protected boolean
-
Constructor Summary
ConstructorDescriptionCoreFileResolver
(File file) CoreFileResolver
(String coreFilePath) CoreFileResolver
(ImageInputStream stream) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Give the resolver a chance to clean up any used resourcesvoid
extractLibrariesToDir
(String path) void
extractLibrary
(String libraryName, File path) getLibrary
(String fileName) Equivalent to getLibrary(fileName, false);getLibrary
(String fileName, boolean silent) boolean
static void
-
Field Details
-
FOOTER_MAGIC
public static final int FOOTER_MAGIC- See Also:
-
FOOTER_MAGIC_BYTES
public static final byte[] FOOTER_MAGIC_BYTES -
coreFile
-
stream
-
validFile
protected boolean validFile
-
-
Constructor Details
-
CoreFileResolver
-
CoreFileResolver
-
CoreFileResolver
-
-
Method Details
-
main
-
extractLibrariesToDir
- Throws:
IOException
-
extractLibrary
- Throws:
IOException
-
hasLibraries
public boolean hasLibraries() -
getLibrary
- Specified by:
getLibrary
in interfaceILibraryResolver
- Parameters:
fileName
- Path of the modulesilent
- If true, suppress log messages if file cannot be found- Returns:
- File handle on library on local system
- Throws:
FileNotFoundException
-
getLibrary
Description copied from interface:ILibraryResolver
Equivalent to getLibrary(fileName, false);- Specified by:
getLibrary
in interfaceILibraryResolver
- Parameters:
fileName
- Path of the module- Returns:
- File handle on library on local system
- Throws:
FileNotFoundException
-
dispose
public void dispose()Give the resolver a chance to clean up any used resources- Specified by:
dispose
in interfaceILibraryResolver
-