@Override public void dump(Appendable out, String indent) throws IOException { super.dump(out, indent); out.append(indent).append(" +- incomingHandler : "); if (incomingHandler instanceof Dumpable) { ((Dumpable) incomingHandler).dump(out, indent + " "); } else { out.append(incomingHandler.toString()).append('\n'); } out.append(indent).append(" +- outgoingHandler : "); if (outgoingHandler instanceof Dumpable) { ((Dumpable) outgoingHandler).dump(out, indent + " "); } else { out.append(outgoingHandler.toString()).append('\n'); } }
@Override public void dump(Appendable out, String indent) throws IOException { dumpThis(out); out.append(indent).append(" +- incomingHandler : "); if (incomingHandler instanceof Dumpable) { ((Dumpable) incomingHandler).dump(out, indent + " "); } else { out.append(incomingHandler.toString()).append(System.lineSeparator()); } out.append(indent).append(" +- outgoingHandler : "); if (outgoingHandler instanceof Dumpable) { ((Dumpable) outgoingHandler).dump(out, indent + " "); } else { out.append(outgoingHandler.toString()).append(System.lineSeparator()); } }