@@ -0,0 +1,368 @@
+package de.danielbechler.diff.visitor;%0A%0Aimport de.danielbechler.diff.visitor.PrintingVisitor;%0A%0Apublic class ToStringVisitor extends PrintingVisitor%0A%7B%0A%09String%09string;%0A%0A%09public ToStringVisitor(Object working, Object base)%0A%09%7B%0A%09%09super(working, base);%0A%09%7D%0A%0A%09protected void print(final String text)%0A%09%7B%0A%09%09string = text;%0A%09%7D%0A%0A%09public String getString()%0A%09%7B%0A%09%09return string;%0A%09%7D%0A%7D%0A

Support for getting output of PrintingVisitor as a string.