Module openj9.dtfj

Class CoreReaderSupport

java.lang.Object
com.ibm.dtfj.corereaders.CoreReaderSupport
All Implemented Interfaces:
ICoreFileReader, ResourceReleaser
Direct Known Subclasses:
NewAixDump, NewElfDump, NewWinDump

public abstract class CoreReaderSupport extends Object implements ICoreFileReader
  • Field Details

  • Constructor Details

    • CoreReaderSupport

      public CoreReaderSupport(DumpReader reader)
  • Method Details

    • getMemoryRangesAsArray

      protected abstract MemoryRange[] getMemoryRangesAsArray()
    • isLittleEndian

      protected abstract boolean isLittleEndian()
    • is64Bit

      protected abstract boolean is64Bit()
    • coreReadInt

      protected int coreReadInt() throws IOException
      Throws:
      IOException
    • coreSeek

      protected void coreSeek(long position) throws IOException
      Throws:
      IOException
    • coreReadLong

      protected long coreReadLong() throws IOException
      Throws:
      IOException
    • coreReadAddress

      protected long coreReadAddress() throws IOException
      Throws:
      IOException
    • coreReadShort

      protected short coreReadShort() throws IOException
      Throws:
      IOException
    • coreReadByte

      protected byte coreReadByte() throws IOException
      Throws:
      IOException
    • coreReadBytes

      protected byte[] coreReadBytes(int n) throws IOException
      Throws:
      IOException
    • getAddressSpace

      public IAbstractAddressSpace getAddressSpace()
      Description copied from interface: ICoreFileReader
      Creates a representation of the address space capable of reading data from memory as a flat address space even though it may be fragmented across regions of several files or transport media. Note that this method is expected to be called several times and should always return the same instance.
      Specified by:
      getAddressSpace in interface ICoreFileReader
      Returns:
    • isTruncated

      public boolean isTruncated()
      Specified by:
      isTruncated in interface ICoreFileReader
      Returns:
      true if the core file is truncated, false otherwise
    • coreGetPosition

      protected long coreGetPosition() throws IOException
      Throws:
      IOException
    • coreCheckOffset

      protected boolean coreCheckOffset(long location) throws IOException
      Throws:
      IOException
    • releaseResources

      public void releaseResources() throws IOException
      Specified by:
      releaseResources in interface ResourceReleaser
      Throws:
      IOException