1819202122232425
private InputStream getTargetRTE() { try { return getTarget(); } catch (IOException e) { throw new InputOutputException("failed to get target InputStream", e); } }
3031323334353637
private void writeHeader(OutputStream out) { try { out.write(HEADER.getBytes()); } catch (IOException e) { throw new InputOutputException("writeMethodEnter failed", e); } }
4041424344454647
try { out.writeByte(ENTER); out.writeInt(methodIndex); } catch (IOException e) { throw new InputOutputException("writeMethodEnter failed", e); } }
5152535455565758
try { out.writeByte(EXIT); out.writeInt((int) TimeUnit.MILLISECONDS.fromNanos(durationNanos)); out.writeBoolean(success); } catch (IOException e) { throw new InputOutputException("writeMethodExit failed", e); } }
6465666768697071
out.writeInt(methodIndex); out.writeUTF(methodKey.getClassName()); out.writeUTF(methodKey.getMethodName()); out.writeUTF(methodKey.getSignature()); } catch (IOException e) { throw new InputOutputException("writeMethodIndex failed", e); } }
7980818283848586
try { out.writeByte(DISBALE); out.writeInt(methodIndex); out.writeLong(callCount); } catch (IOException e) { throw new InputOutputException("writeMethodDisabled failed", e); } }
93949596979899100
out.writeInt(priority); out.writeUTF(threadName); out.writeUTF(groupName); out.writeLong(currentTimeMillis); } catch (IOException e) { throw new InputOutputException("writeMethodDisabled failed", e); } }
103104105106107108109110
try { out.writeByte(EOF); out.flush(); } catch (IOException e) { throw new InputOutputException("writeEOF failed", e); } }
3233343536373839
try { while (inputStream.read() != '\n') ; in = new DataInputStream(inputStream); } catch (IOException e) { throw new InputOutputException("error reading header", e); } }
383940414243444546
} sb.append("\n"); try { writer.write(sb.toString()); } catch (IOException e) { throw new InputOutputException("failed to record", e); } current = new String[delimitedFormat.getFieldCount()]; }