java.lang.Object
com.ibm.j9ddr.corereaders.AbstractCoreReader
- All Implemented Interfaces:
- ICore
- Direct Known Subclasses:
- AIXDumpReader,- MachoDumpReader,- MiniDumpReader
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected ImageInputStreamprotected Collection<? extends IMemorySource> protected FileFields declared in interface com.ibm.j9ddr.corereaders.ICoreCORE_CREATE_TIME_PROPERTY, PROCESSOR_COUNT_PROPERTY, PROCESSOR_SUBTYPE_PROPERTY, PROCESSOR_TYPE_PROPERTY, SYSTEM_SUBTYPE_PROPERTY, SYSTEM_TYPE_PROPERTY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface com.ibm.j9ddr.corereaders.ICoregetAddressSpaces, getDumpFormat, getPlatform, getProperties, isTruncated
- 
Field Details- 
_fileReader
- 
_memoryRanges
- 
coreFile
 
- 
- 
Constructor Details- 
AbstractCoreReaderprotected AbstractCoreReader()
 
- 
- 
Method Details- 
setReaderThis 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
- 
readLongprotected static long readLong(byte[] data, int start) 
- 
readIntprotected static int readInt(byte[] data, int start) 
- 
closeDescription copied from interface:ICoreClose the handle to the core file and release any resources- Specified by:
- closein interface- ICore
- Throws:
- IOException
 
 
-