Code example for FileWriter

Methods: closeflush, write

0
	} 
 
	public void close() { 
		if (fileLog != null) {
			try { 
				fileLog.write("// Spring Roo " + versionInfo() + " log closed at " + df.format(new Date()) + "\n");
				fileLog.flush();
				fileLog.close();
				fileLog = null;
			} 
			catch (IOException e) {
			} 
		} 
		Logger mainLogger = Logger.getLogger("");
		mainLogger.removeHandler(handler);
	} 
 
	@Override 
	public boolean executeCommand(String line) {
		try { 
			ActiveProcessManager.setActiveProcessManager(processManager);