- java.lang.Object
-
- com.ibm.j9ddr.corereaders.CoreReader
-
public class CoreReader extends Object
Factory for ICoreReader implementations.
-
-
Constructor Summary
Constructors Constructor Description CoreReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
getFileHeader(String path)
static byte[]
getFileHeader(ImageInputStream iis)
static ICore
readCoreFile(String path)
Create a ICore object for a core file.static ICore
readCoreFile(ImageInputStream in)
-
-
-
Method Detail
-
readCoreFile
public static ICore readCoreFile(String path) throws IOException
Create a ICore object for a core file.- Parameters:
file
- File object referencing core file.- Returns:
- ICoreReader object or NULL if no core reader will accept the supplied file
- Throws:
IOException
- If there's an I/O problem reading the core file
-
readCoreFile
public static ICore readCoreFile(ImageInputStream in) throws IOException
- Throws:
IOException
-
getFileHeader
public static byte[] getFileHeader(String path) throws IOException
- Throws:
IOException
-
getFileHeader
public static byte[] getFileHeader(ImageInputStream iis) throws IOException
- Throws:
IOException
-
-