final StringWriter s1 = new StringWriter();
final PrintWriter p0 = new PrintWriter(s0);
final PrintWriter p1 = new PrintWriter(s1);
int j = 0;
while (!msg.empty()) {
p0.println(" <<< " + pad(j) + msg.pop());
p1.println(" >>> " + pad(j) + msg.pop());
j += 4;
}
out.println(s0.toString());
out.println(s1.toString());