~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to results/plugins/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MITTYAdapter.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
7
 
 *
8
 
 * Contributors:
9
 
 *     QNX Software Systems - Initial API and implementation
10
 
 *******************************************************************************/
11
 
 
12
 
package org.eclipse.cdt.debug.mi.core;
13
 
 
14
 
import java.io.InputStream;
15
 
import java.io.OutputStream;
16
 
 
17
 
import org.eclipse.cdt.utils.pty.PTY;
18
 
 
19
 
/**
20
 
 * Adapt the PTY code to IMITTY
21
 
 * 
22
 
 */
23
 
public class MITTYAdapter implements IMITTY {
24
 
 
25
 
        PTY fPty;
26
 
 
27
 
        public MITTYAdapter(PTY pty) {
28
 
                fPty = pty;
29
 
        }
30
 
 
31
 
        /* (non-Javadoc)
32
 
         * @see org.eclipse.cdt.debug.mi.core.IMITTY#getSlaveName()
33
 
         */
34
 
        public String getSlaveName() {
35
 
                return fPty.getSlaveName();
36
 
        }
37
 
 
38
 
        /* (non-Javadoc)
39
 
         * @see org.eclipse.cdt.debug.mi.core.IMITTY#getOutputStream()
40
 
         */
41
 
        public OutputStream getOutputStream() {
42
 
                return fPty.getOutputStream();
43
 
        }
44
 
 
45
 
        /* (non-Javadoc)
46
 
         * @see org.eclipse.cdt.debug.mi.core.IMITTY#getInputStream()
47
 
         */
48
 
        public InputStream getInputStream() {
49
 
                return fPty.getInputStream();
50
 
        }
51
 
 
52
 
}