java.lang.Object
com.ibm.j9ddr.corereaders.AbstractCoreReader
- All Implemented Interfaces:
ICore
- Direct Known Subclasses:
AIXDumpReader,MachoDumpReader,MiniDumpReader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ImageInputStreamprotected Collection<? extends IMemorySource> protected FileFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckOffset(long location) voidclose()Close the handle to the core file and release any resourcesstatic Stringformat(int i) static Stringformat(long l) bytereadByte()byte[]readBytes(int len) voidreadFully(byte[] b) voidreadFully(byte[] buffer, int offset, int length) intreadInt()protected static intreadInt(byte[] data, int start) longreadLong()protected static longreadLong(byte[] data, int start) shortprotected Stringvoidseek(long pos) voidsetReader(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, waitMethods 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:ICoreClose the handle to the core file and release any resources- Specified by:
closein interfaceICore- Throws:
IOException
-