|
|||||||||||
| PREV CLASS NEXT CLASS | 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 objects.
| Constructor Summary | |
StackTrace.Parser()
|
|
| Method Summary | |
protected StackTrace.Entry |
createEntry(String raw)
Create a stack trace entry for the given raw trace entry. |
protected BufferedReader |
createReader(Throwable detail)
Create a reader for the trace of the given Throwable. |
static StackTrace.Parser |
getInstance()
Get the stack trace parser for this virtual machine. |
List |
parse(Throwable detail,
int level,
int limit)
Parse a Throwable stack trace. |
protected byte[] |
readBytes(Throwable detail)
Read a throwable stack trace as an array of bytes. |
protected void |
setLevel(BufferedReader reader,
int level)
Skip to the correct level of the stack (going down into the stack). |
protected void |
skipDescription(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(BufferedReader reader) throws IOException
reader - Reader representing the trace.
IOExceptionprotected void setLevel(BufferedReader reader, int level) throws IOException
reader - Reader representing the stack trace.level - Number of levels to go down.
IOExceptionprotected byte[] readBytes(Throwable detail) throws IOException
detail - Throwable to get trace from.
IOExceptionprotected BufferedReader createReader(Throwable detail) throws IOException
detail - Thorwable to get trace from.
IOExceptionpublic List parse(Throwable detail, int level, int limit) throws 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 objects.
IOExceptionprotected StackTrace.Entry createEntry(String raw) throws IOException
raw - Raw stack trace entry.
IOExceptionpublic static final StackTrace.Parser getInstance() throws InstantiationException
InstantiationException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||