KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > lib > terminalemulator > NullTermStream


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is Terminal Emulator.
16  * The Initial Developer of the Original Software is Sun Microsystems, Inc..
17  * Portions created by Sun Microsystems, Inc. are Copyright (C) 2001.
18  * All Rights Reserved.
19  *
20  * Contributor(s): Ivan Soleimanipour.
21  */

22
23 /*
24  * "NullTermStream.java"
25  * NullTermStream.java 1.6 01/07/10
26  */

27
28 package org.netbeans.lib.terminalemulator;
29
30 /**
31  * Null stream module for debugging/testing purposes.
32  */

33
34 public class NullTermStream extends TermStream {
35     public void flush() {
36     toDTE.flush();
37     }
38     public void putChar(char c) {
39     toDTE.putChar(c);
40     }
41     public void putChars(char buf[], int offset, int count) {
42     toDTE.putChars(buf, offset, count);
43     }
44     public void sendChar(char c) {
45     toDCE.sendChar(c);
46     }
47     public void sendChars(char buf[], int offset, int count) {
48     toDCE.sendChars(buf, offset, count);
49     }
50 };
51
Popular Tags