1
/*******************************************************************************
2
* Copyright (c) 2000, 2006 QNX Software Systems and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* QNX Software Systems - Initial API and implementation
10
*******************************************************************************/
12
package org.eclipse.cdt.debug.mi.core;
14
import java.io.InputStream;
15
import java.io.OutputStream;
17
import org.eclipse.cdt.utils.pty.PTY;
20
* Adapt the PTY code to IMITTY
23
public class MITTYAdapter implements IMITTY {
27
public MITTYAdapter(PTY pty) {
32
* @see org.eclipse.cdt.debug.mi.core.IMITTY#getSlaveName()
34
public String getSlaveName() {
35
return fPty.getSlaveName();
39
* @see org.eclipse.cdt.debug.mi.core.IMITTY#getOutputStream()
41
public OutputStream getOutputStream() {
42
return fPty.getOutputStream();
46
* @see org.eclipse.cdt.debug.mi.core.IMITTY#getInputStream()
48
public InputStream getInputStream() {
49
return fPty.getInputStream();