1 22 23 27 28 package org.netbeans.lib.terminalemulator; 29 30 45 46 public abstract class TermStream { 47 protected TermStream toDTE; protected TermStream toDCE; 50 void setToDCE(TermStream toDCE) { 51 this.toDCE = toDCE; 52 } 53 void setToDTE(TermStream toDTE) { 54 this.toDTE = toDTE; 55 } 56 57 void setTerm(Term term) { 58 this.term = term; 59 } 60 protected Term getTerm() { 61 return term; 62 } 63 private Term term; 64 65 66 public abstract void flush(); 68 public abstract void putChar(char c); 69 public abstract void putChars(char buf[], int offset, int count); 70 71 public abstract void sendChar(char c); 73 public abstract void sendChars(char c[], int offset, int count); 74 } 75 | Popular Tags |