IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.kernel.util
Class PDLParse

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.ibm.rational.test.lt.kernel.util.PDLParse
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class PDLParse
extends DefaultHandler

PDLParse takes an RPT CommonBaseEventsNN.log file and produces a simply formatted version of it in the file cbe.log. Usage: java PDLParse [XML file to parse] (default CommonBaseEvents00.log)


Nested Class Summary
 class PDLParse.CBInputStream
          CBInputStream designed to turn the CommonBaseEvents00.log into a well-formed document.
 
Field Summary
static String defaultFile
           
 
Constructor Summary
PDLParse()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
           
 void endElement(String namespaceURI, String localName, String qName)
           
 void error(SAXParseException e)
          ErrorHandler interface overrides
 void fatalError(SAXParseException e)
           
 InputStream getInputStream(String xmlFileName)
           
static void main(String[] args)
           
 void setDate(boolean b)
           
 void startDocument()
          ContentHandler interface overrides
 void startElement(String namespaceURI, String localName, String qName, Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultFile

public static String defaultFile
Constructor Detail

PDLParse

public PDLParse()
Method Detail

error

public void error(SAXParseException e)
           throws SAXException
ErrorHandler interface overrides

Specified by:
error in interface ErrorHandler
Overrides:
error in class DefaultHandler
Throws:
SAXException

fatalError

public void fatalError(SAXParseException e)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler
Overrides:
fatalError in class DefaultHandler
Throws:
SAXException

startDocument

public void startDocument()
ContentHandler interface overrides

Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class DefaultHandler

endDocument

public void endDocument()
Specified by:
endDocument in interface ContentHandler
Overrides:
endDocument in class DefaultHandler

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler

endElement

public void endElement(String namespaceURI,
                       String localName,
                       String qName)
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler

characters

public void characters(char[] ch,
                       int start,
                       int length)
Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler

getInputStream

public InputStream getInputStream(String xmlFileName)

setDate

public void setDate(boolean b)

main

public static void main(String[] args)

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.