Module openj9.dtfj

Class XMLIndexReader

java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.ibm.jvm.j9.dump.indexsupport.XMLIndexReader
All Implemented Interfaces:
IParserNode, ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class XMLIndexReader extends DefaultHandler implements IParserNode
  • Constructor Details

    • XMLIndexReader

      public XMLIndexReader()
  • Method Details

    • parseIndexWithDump

      public Image parseIndexWithDump(InputStream input, ICoreFileReader core, ClosingFileReader reader, IFileLocationResolver fileResolver)
      Creates an Image from the given XML index stream and the corresponding corefile
      Parameters:
      input -
      core -
      reader - The open file that the core is built upon
      fileResolver - The file location resolving agent which we can use when constructing the builder to find other files for us
      Returns:
    • parseIndexWithDump

      public Image parseIndexWithDump(InputStream input, ICoreFileReader core, ImageInputStream stream, IFileLocationResolver fileResolver)
      Creates an Image from the given XML index stream and the corresponding corefile
      Parameters:
      input -
      core -
      reader - The open file that the core is built upon
      fileResolver - The file location resolving agent which we can use when constructing the builder to find other files for us
      Returns:
    • nodeToPushAfterStarting

      public IParserNode nodeToPushAfterStarting(String uri, String localName, String qName, Attributes attributes)
      Description copied from interface: IParserNode
      Called when a start tag is parsed. Returns the node to handle this new scope which may be the same instance as the receiver if this same node wants to take responsibility.
      Specified by:
      nodeToPushAfterStarting in interface IParserNode
      Returns:
    • stringWasParsed

      public void stringWasParsed(String string)
      Description copied from interface: IParserNode
      Called when a literal string is parsed in the XML stream.
      Specified by:
      stringWasParsed in interface IParserNode
    • didFinishParsing

      public void didFinishParsing()
      Description copied from interface: IParserNode
      Called when this tag is done being parsed (the start tag and all children have been fully parsed) and it is going to be discarded by the parser.
      Specified by:
      didFinishParsing in interface IParserNode
    • setJ9DumpData

      public void setJ9DumpData(long environ, String osType, String osSubType, String cpuType, int cpuCount, long bytesMem, int pointerSize, Image[] imageRef, ImageAddressSpace[] addressSpaceRef, ImageProcess[] processRef)