1 package org.sapia.console; 2 3 import java.io.IOException ; 4 import java.io.InputStream ; 5 6 7 21 public class ExecHandle { 22 private CmdLineThread _cmdThread; 23 24 27 ExecHandle(CmdLineThread cmdThread) { 28 _cmdThread = cmdThread; 29 } 30 31 34 public InputStream getInputStream() throws IOException { 35 return _cmdThread.getInputStream(); 36 } 37 38 41 public InputStream getErrStream() throws IOException { 42 return _cmdThread.getErrStream(); 43 } 44 45 48 public Process getProcess() { 49 return _cmdThread.getProcess(); 50 } 51 52 56 public void close() { 57 _cmdThread.close(); 58 } 59 } 60 | Popular Tags |