public class LogFileParser extends org.xml.sax.helpers.DefaultHandler
Modifier and Type | Field and Description |
---|---|
String |
auxInfo |
String |
logDescription |
String |
logName |
protected Hashtable |
messageLogs |
Constructor and Description |
---|
LogFileParser() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] buf,
int offset,
int len) |
void |
endDocument() |
void |
endElement(String namespaceURI,
String sName,
String qName) |
Hashtable |
parseLogs(InputSource inputSource) |
Hashtable |
parseLogsFromDebugFile(String logFileName)
Generate a file that can be digested by the trace viewer.
|
Hashtable |
parseLogsFromFile(String logFileName)
Generate a file that can be digested by the trace viewer.
|
Hashtable |
parseLogsFromString(String logString) |
void |
startDocument() |
void |
startElement(String namespaceURI,
String lName,
String qName,
Attributes attrs) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
protected Hashtable messageLogs
public String logDescription
public String auxInfo
public String logName
public Hashtable parseLogs(InputSource inputSource)
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void startElement(String namespaceURI, String lName, String qName, Attributes attrs) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String namespaceURI, String sName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void characters(char[] buf, int offset, int len) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
public Hashtable parseLogsFromDebugFile(String logFileName)
public Hashtable parseLogsFromFile(String logFileName)
Copyright © 2015. All Rights Reserved.