java.lang.Object
com.ibm.j9ddr.libraries.CoreFileResolver
- All Implemented Interfaces:
ILibraryResolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Fileprotected Footerstatic final intstatic final byte[]protected ImageInputStreamprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionCoreFileResolver(File file) CoreFileResolver(String coreFilePath) CoreFileResolver(ImageInputStream stream) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Give the resolver a chance to clean up any used resourcesvoidextractLibrariesToDir(String path) voidextractLibrary(String libraryName, File path) getLibrary(String fileName) Equivalent to getLibrary(fileName, false);getLibrary(String fileName, boolean silent) booleanstatic 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:
getLibraryin 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:ILibraryResolverEquivalent to getLibrary(fileName, false);- Specified by:
getLibraryin 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:
disposein interfaceILibraryResolver
-