package org.spoofax.interpreter.terms;

public interface ITermPrinter {

	public String getString();

	public void print(String string);

	public void println(String string, boolean b);

	public void indent(int i);

	public void nextIndentOff();

	public void println(String string);

	public void outdent(int i);

}
@@ -33,16 +33,45 @@
 terms;%0A%0A
+import java.io.IOException;%0A%0A
 public i
@@ -92,16 +92,35 @@
 Printer 
+extends Appendable 
 %7B%0A%0A%09publ
@@ -318,32 +318,32 @@
 tring string);%0A%0A
-
 %09public void out
@@ -356,9 +356,444 @@
 nt i);%0A%0A
+    default Appendable append(CharSequence csq) throws IOException %7B%0A        this.print(csq.toString());%0A        return this;%0A    %7D%0A%0A    default Appendable append(CharSequence csq, int start, int end) throws IOException %7B%0A        this.append(csq.subSequence(start, end));%0A        return this;%0A    %7D%0A%0A    default Appendable append(char c) throws IOException %7B%0A        this.print(new String(new char%5B%5D %7Bc%7D));%0A        return this;%0A    %7D%0A%0A
 %7D

Make TermPrinter Appendable for code sharing between two legacy methods in IStrategoTerm