| | |
| | | */ |
| | | public static byte[] getBytes(String s) |
| | | { |
| | | if (s == null) return null; |
| | | |
| | | try |
| | | { |
| | | if (s == null) |
| | | { |
| | | return null; |
| | | } |
| | | |
| | | |
| | | char c; |
| | | int length = s.length(); |
| | | byte[] returnArray = new byte[length]; |
| | |
| | | buffer.append(indentBuf); |
| | | buffer.append(byteToHex(currentByte)); |
| | | asciiBuf.append(byteToASCII(currentByte)); |
| | | pos++; |
| | | |
| | | for (int i=1; i < 16; i++) |
| | | { |
| | |
| | | try |
| | | { |
| | | className = className.substring(className.lastIndexOf('.') + 1); |
| | | } catch (Exception e) {} |
| | | } catch (Exception e) { /* ignored */ } |
| | | buffer.append(className); |
| | | } |
| | | else |
| | |
| | | } |
| | | |
| | | int i=0; |
| | | buffer.append("("); |
| | | buffer.append(" ("); |
| | | for (StackTraceElement e : t.getStackTrace()) |
| | | { |
| | | if (i > 20) |