public synchronized String receive() {
		Assert.isTrue(isRunning(), "Shell process is not started.");
		String data;
		try {
			byte[] buffer = this.serializer.deserialize(this.stdout);
			data = new String(buffer, this.charset);
		}
		catch (IOException e) {
			throw new RuntimeException(e.getMessage(), e);
		}

		return data.trim();
	}
Receive data from the process.
@return any available data from stdout
extensions/spring-xd-extension-process/src/main/java/org/springframework/xd/extension/process/ShellCommandProcessor.java