blob: 175ceac2e48a887d07e727e5c1707d37258a6250 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/*******************************************************************************
* Copyright (c) 2014 Wind River Systems, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Markus Schorn - initial API and implementation
*******************************************************************************/
package org.eclipse.tcf.te.tcf.remote.core;
import java.io.InputStream;
import java.io.OutputStream;
import org.eclipse.tcf.te.runtime.interfaces.callback.ICallback;
import org.eclipse.tcf.te.tcf.processes.core.interfaces.launcher.IProcessStreamsProxy;
public class TCFProcessStreams implements IProcessStreamsProxy {
private InputStream fRemoteStderr;
private OutputStream fRemoteStdin;
private InputStream fRemoteStdout;
@Override
public void connectOutputStreamMonitor(InputStream stream) {
fRemoteStdout = stream;
}
@Override
public void connectInputStreamMonitor(OutputStream stream) {
fRemoteStdin = stream;
}
@Override
public void connectErrorStreamMonitor(InputStream stream) {
fRemoteStderr = stream;
}
@Override
public void dispose(ICallback callback) {
}
public InputStream getStdout() {
return fRemoteStdout;
}
public InputStream getStderr() {
return fRemoteStderr;
}
public OutputStream getStdin() {
return fRemoteStdin;
}
}
|