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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.nodeToPushAfterStarting
(String uri, String localName, String qName, Attributes attributes) Called when a start tag is parsed.parseIndexWithDump
(InputStream input, ICoreFileReader core, ClosingFileReader reader, IFileLocationResolver fileResolver) Creates an Image from the given XML index stream and the corresponding corefileparseIndexWithDump
(InputStream input, ICoreFileReader core, ImageInputStream stream, IFileLocationResolver fileResolver) Creates an Image from the given XML index stream and the corresponding corefilevoid
setJ9DumpData
(long environ, String osType, String osSubType, String cpuType, int cpuCount, long bytesMem, int pointerSize, Image[] imageRef, ImageAddressSpace[] addressSpaceRef, ImageProcess[] processRef) void
stringWasParsed
(String string) Called when a literal string is parsed in the XML stream.Methods declared in class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface org.xml.sax.ContentHandler
declaration
-
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 uponfileResolver
- 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
-fileResolver
- The file location resolving agent which we can use when constructing the builder to find other files for usreader
- The open file that the core is built upon- 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 interfaceIParserNode
- Parameters:
uri
-localName
-qName
-attributes
-- Returns:
-
stringWasParsed
Description copied from interface:IParserNode
Called when a literal string is parsed in the XML stream.- Specified by:
stringWasParsed
in interfaceIParserNode
- Parameters:
string
-
-
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 interfaceIParserNode
-
setJ9DumpData
public void setJ9DumpData(long environ, String osType, String osSubType, String cpuType, int cpuCount, long bytesMem, int pointerSize, Image[] imageRef, ImageAddressSpace[] addressSpaceRef, ImageProcess[] processRef)
-