|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.StackTrace.Parser
A parser which takes a standard Throwable and produces
StackTrace.Entry (src) objects.
| Constructor Summary | |
StackTrace.Parser()
|
|
| Method Summary | |
protected StackTrace.Entry (src) |
createEntry(java.lang.String raw)
Create a stack trace entry for the given raw trace entry. |
protected java.io.BufferedReader |
createReader(java.lang.Throwable detail)
Create a reader for the trace of the given Throwable. |
static StackTrace.Parser (src) |
getInstance()
Get the stack trace parser for this virtual machine. |
java.util.List |
parse(java.lang.Throwable detail,
int level,
int limit)
Parse a Throwable stack trace. |
protected byte[] |
readBytes(java.lang.Throwable detail)
Read a throwable stack trace as an array of bytes. |
protected void |
setLevel(java.io.BufferedReader reader,
int level)
Skip to the correct level of the stack (going down into the stack). |
protected void |
skipDescription(java.io.BufferedReader reader)
Skip the throwable description of the trace. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StackTrace.Parser()
| Method Detail |
protected void skipDescription(java.io.BufferedReader reader)
throws java.io.IOException
reader - Reader representing the trace.
java.io.IOException
protected void setLevel(java.io.BufferedReader reader,
int level)
throws java.io.IOException
reader - Reader representing the stack trace.level - Number of levels to go down.
java.io.IOException
protected byte[] readBytes(java.lang.Throwable detail)
throws java.io.IOException
detail - Throwable to get trace from.
java.io.IOException
protected java.io.BufferedReader createReader(java.lang.Throwable detail)
throws java.io.IOException
detail - Thorwable to get trace from.
java.io.IOException
public java.util.List parse(java.lang.Throwable detail,
int level,
int limit)
throws java.io.IOException
detail - Throwable to get trace from.level - Number of levels down to begin parsing.limit - The maximum number of entries to parse (does not
include skipped levels or the description).
A value <= zero results in all entries being parsed.
StackTrace.Entry (src) objects.
java.io.IOException
protected StackTrace.Entry (src) createEntry(java.lang.String raw)
throws java.io.IOException
raw - Raw stack trace entry.
java.io.IOException
public static final StackTrace.Parser (src) getInstance()
throws java.lang.InstantiationException
java.lang.InstantiationException
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||