tools.tracesviewer
Class LogFileParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
tools.tracesviewer.LogFileParser
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class LogFileParser
- extends org.xml.sax.helpers.DefaultHandler
Parse the log files - sort them and organize by call id.
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, 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 |
messageLogs
protected Hashtable messageLogs
logDescription
public String logDescription
auxInfo
public String auxInfo
logName
public String logName
LogFileParser
public LogFileParser()
parseLogs
public Hashtable parseLogs(InputSource inputSource)
startDocument
public void startDocument()
throws SAXException
- Specified by:
startDocument
in interface ContentHandler
- Overrides:
startDocument
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
- Specified by:
endDocument
in interface ContentHandler
- Overrides:
endDocument
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
startElement
public void startElement(String namespaceURI,
String lName,
String qName,
Attributes attrs)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
endElement
public void endElement(String namespaceURI,
String sName,
String qName)
throws SAXException
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
characters
public void characters(char[] buf,
int offset,
int len)
throws SAXException
- Specified by:
characters
in interface ContentHandler
- Overrides:
characters
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
parseLogsFromDebugFile
public Hashtable parseLogsFromDebugFile(String logFileName)
- Generate a file that can be digested by the trace viewer.
parseLogsFromFile
public Hashtable parseLogsFromFile(String logFileName)
- Generate a file that can be digested by the trace viewer.
parseLogsFromString
public Hashtable parseLogsFromString(String logString)
Copyright © 2012. All Rights Reserved.