Code example for Writer

Methods: flushwrite

0
	} 
 
	public void println(String message)
	  throws IOException 
	{ 
		mWriter.write(TIMESTAMP_FMT.format(new Date()));
		mWriter.write(message);
		mWriter.write('\n');
		mWriter.flush();
	} 
 
	public void close() 
	  throws IOException 
	{ 
		mWriter.close();
	} 
} 
Experience pair programming with AI  Get Codota for Java