Code example for StringWriter

Methods: close, toString

0
		writer.append(line + "\n");
	} 
 
	protected String output(GoingConcerns concerns, String... command) {
		try { 
			writer.close();
			return new GlindaInvocation(new JournalFile(FreedomFile 
					.fromString(writer.toString()), false), getCorrespondent(),
					concerns, command).output(now);
		} catch (AssumptionViolatedException e) {
			throw e;
		} catch (Exception e) {
			throw new AssertionError(e);
		} 
	} 
 
	protected void nowIs(String string) {
		now = new GlindaTimePointParser().parse(string);
	} 
 
	protected void run(String... command) {