Class AbstractCoreReader
java.lang.Object
com.ibm.j9ddr.corereaders.AbstractCoreReader
- All Implemented Interfaces:
ICore
- Direct Known Subclasses:
AIXDumpReader
,MachoDumpReader
,MiniDumpReader
-
Field Summary
Modifier and TypeFieldDescriptionprotected ImageInputStream
protected Collection
<? extends IMemorySource> protected File
Fields declared in interface com.ibm.j9ddr.corereaders.ICore
CORE_CREATE_TIME_PROPERTY, PROCESSOR_COUNT_PROPERTY, PROCESSOR_SUBTYPE_PROPERTY, PROCESSOR_TYPE_PROPERTY, SYSTEM_SUBTYPE_PROPERTY, SYSTEM_TYPE_PROPERTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkOffset
(long location) void
close()
Close the handle to the core file and release any resourcesstatic String
format
(int i) static String
format
(long l) byte
readByte()
byte[]
readBytes
(int len) void
readFully
(byte[] b) void
readFully
(byte[] buffer, int offset, int length) int
readInt()
protected static int
readInt
(byte[] data, int start) long
readLong()
protected static long
readLong
(byte[] data, int start) short
protected String
void
seek
(long pos) void
setReader
(ImageInputStream reader) This sets the reader to use to retrieve the underlying bytes to process.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.ICore
getAddressSpaces, getDumpFormat, getPlatform, getProperties, isTruncated
-
Field Details
-
_fileReader
-
_memoryRanges
-
coreFile
-
-
Constructor Details
-
AbstractCoreReader
protected AbstractCoreReader()
-
-
Method Details
-
setReader
This sets the reader to use to retrieve the underlying bytes to process. The reader may perform buffering or other operations before making the data available. Subclasses should override this method if additional actions need to be performed when the reader is set, typically this will be things such as an initial read of the data.- Parameters:
reader
-- Throws:
IOException
-
readLong
- Throws:
IOException
-
readInt
- Throws:
IOException
-
readShort
- Throws:
IOException
-
readByte
- Throws:
IOException
-
seek
- Throws:
IOException
-
readBytes
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
- Throws:
IOException
-
checkOffset
- Throws:
IOException
-
readString
- Throws:
IOException
-
format
-
format
-
readLong
protected static long readLong(byte[] data, int start) -
readInt
protected static int readInt(byte[] data, int start) -
close
Description copied from interface:ICore
Close the handle to the core file and release any resources- Specified by:
close
in interfaceICore
- Throws:
IOException
-