org.jcoderz.commons.logging
Class StackTraceElementParser

java.lang.Object
  extended by org.jcoderz.commons.logging.StackTraceElementParser

public final class StackTraceElementParser
extends Object

This helper class is used to parse a CharBuffer containing data of one line of a StackTrace. A Stacktrace line is one of:


Method Summary
static StackTraceInfo parse(CharBuffer buffer)
          Parses the supplied buffer for the parameters of a stacktrace element and returns the information as StackTraceInfo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static StackTraceInfo parse(CharBuffer buffer)
                            throws ParseException
Parses the supplied buffer for the parameters of a stacktrace element and returns the information as StackTraceInfo.

Parameters:
buffer - The buffer containing data of one stack trace line.
Returns:
A new instance of StackTraceInfo containing the information of the parsed line.
Throws:
ParseException - if an error occurs.


Copyright 2007 The jCoderZ Project.