code: public static String printToStr(Object o) {
  		StringWriter sw=new StringWriter();
  		try {
  			print(o,sw,false);
  		} catch (IOException e) {
  			sw.write("<<error>>");
  		}
  		return sw.toString().trim();
  	}
docs: *
  Prettyprint into a string, no type header.