3637383940414243444546
{ IndentedLineBuffer b = new IndentedLineBuffer() ; b.incIndent() ; b.print("hell") ; b.print("o") ; b.decIndent() ; assertEquals(" hello", b.asString()) ; } @Test public void write03() {
47484950515253545556
IndentedLineBuffer b = new IndentedLineBuffer() ; b.incIndent() ; b.printf("0x%04X", 1) ; b.println() ; b.print("XX") ; b.decIndent() ; assertEquals(" 0x0001\n XX", b.asString()) ; } }
503504505506507508509510511512
for ( Pattern p : patterns ) { p.output(out) ; out.println(); } out.decIndent() ; out.println(")") ; out.flush(); } }
142143144145146147148149150151152
for ( String name : subCommandNames() ) { out.println(name) ; } out.decIndent() ; out.flush() ; } @Override protected String getCommandName()
141142143144145146147148149150151