private long readStringTag(long[] offset) { long start = offset[0]; if (hprofHeap.readTag(offset) != HprofHeap.STRING) { return 0; } return getDumpBuffer().getID(start + stringIDOffset); }
private String getString(long start) { HprofByteBuffer dumpBuffer = getDumpBuffer(); if (start == -1) { return "<unknown string>"; // NOI18N } int len = dumpBuffer.getInt(start + lengthOffset); byte[] chars = new byte[len - dumpBuffer.getIDSize()]; dumpBuffer.get(start + UTF8CharsOffset, chars); String s = "Error"; // NOI18N try { s = new String(chars, "UTF-8"); // NOI18N } catch (UnsupportedEncodingException ex) { ex.printStackTrace(); } return s; }
private long readStringTag(long[] offset) { long start = offset[0]; if (hprofHeap.readTag(offset) != HprofHeap.STRING) { return 0; } return getDumpBuffer().getID(start + stringIDOffset); }
private long readStringTag(long[] offset) { long start = offset[0]; if (hprofHeap.readTag(offset) != HprofHeap.STRING) { return 0; } return getDumpBuffer().getID(start + stringIDOffset); }
private String getString(long start) { HprofByteBuffer dumpBuffer = getDumpBuffer(); if (start == -1) { return "<unknown string>"; // NOI18N } int len = dumpBuffer.getInt(start + lengthOffset); byte[] chars = new byte[len - dumpBuffer.getIDSize()]; dumpBuffer.get(start + UTF8CharsOffset, chars); String s = "Error"; // NOI18N try { s = new String(chars, "UTF-8"); // NOI18N } catch (UnsupportedEncodingException ex) { ex.printStackTrace(); } return s; }
private String getString(long start) { HprofByteBuffer dumpBuffer = getDumpBuffer(); if (start == -1) { return "<unknown string>"; // NOI18N } int len = dumpBuffer.getInt(start + lengthOffset); byte[] chars = new byte[len - dumpBuffer.getIDSize()]; dumpBuffer.get(start + UTF8CharsOffset, chars); String s = "Error"; // NOI18N try { s = new String(chars, "UTF-8"); // NOI18N } catch (UnsupportedEncodingException ex) { ex.printStackTrace(); } return s; }