icegem-core/src/main/java/com/googlecode/icegem/utils/JavaProcessLauncher.java
public void stopBySendingNewLineIntoProcess(Process process)
			throws IOException, InterruptedException {
		if (process != null) {
			BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(
					process.getOutputStream()));

			writer.newLine();

			writer.flush();

			process.waitFor();
		}
	}
public void stopBySendingNewLineIntoProcess(Process process)
			throws IOException, InterruptedException {
		if (process != null) {
			BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(
					process.getOutputStream()));

			writer.newLine();

			writer.flush();

			process.waitFor();
		}
	}
Stops process by sending new line to it's output stream.

The process can be stopped by calling destroy() method.

@param process
of type Process
@throws IOException
when
@throws InterruptedException