public final class DebugUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static StringBuilder |
createStackTrace(StringBuilder s,
StackTraceElement[] stack)
Append a stack trace to a StringBuilder.
|
static StringBuilder |
createStackTrace(StringBuilder s,
Throwable t,
boolean includeCause)
Append a stack trace of the given Throwable to the StringBuilder.
|
static void |
dumpHex(StringBuilder s,
byte[] buffer,
int offset,
int length)
Create an hexadecimal dump of the given buffer.
|
static void |
dumpHex(StringBuilder s,
ByteBuffer buffer)
Create an hexadecimal dump of the given buffer.
|
static String |
getCaller()
Return the String class#method():line of the caller.
|
public static String getCaller()
public static StringBuilder createStackTrace(StringBuilder s, Throwable t, boolean includeCause)
public static StringBuilder createStackTrace(StringBuilder s, StackTraceElement[] stack)
public static void dumpHex(StringBuilder s, byte[] buffer, int offset, int length)
public static void dumpHex(StringBuilder s, ByteBuffer buffer)
Copyright © 2019. All rights reserved.